diff --git a/build.gradle.kts b/build.gradle.kts index d2cf85ef6..2af6b7e19 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -231,12 +231,6 @@ tasks { ) .build() val response = client.newCall(request).execute() -// val client = HttpClient.newHttpClient() -// val request = HttpRequest.newBuilder(uri) -// .header("Authorization", "Bearer $base64Auth") -// .header("Content-Type", "multipart/form-data; boundary=---WD9146A") -// .POST(HttpRequest.BodyPublishers.ofFile(bundleFile.asFile.toPath())) -// .build() val statusCode = response.code println("Upload status code: $statusCode") diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts index fb1f1b2cc..ab98c6869 100644 --- a/buildSrc/build.gradle.kts +++ b/buildSrc/build.gradle.kts @@ -16,5 +16,4 @@ dependencies { implementation("com.moowork.gradle:gradle-node-plugin:1.3.1") implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4") implementation("com.jetbrains:jet-sign:45.47") - implementation("net.thebugmc.gradle:sonatype-central-portal-publisher:1.2.4") } diff --git a/buildSrc/src/main/kotlin/com/jetbrains/rd/gradle/plugins/KotlinJVMPlugin.kt b/buildSrc/src/main/kotlin/com/jetbrains/rd/gradle/plugins/KotlinJVMPlugin.kt index 49f3dd0bb..c0c518bd0 100644 --- a/buildSrc/src/main/kotlin/com/jetbrains/rd/gradle/plugins/KotlinJVMPlugin.kt +++ b/buildSrc/src/main/kotlin/com/jetbrains/rd/gradle/plugins/KotlinJVMPlugin.kt @@ -23,7 +23,6 @@ open class KotlinJVMPlugin : Plugin { apply(plugin = "maven-publish") apply(plugin = "org.jetbrains.dokka") apply(plugin = "signing") -// apply(plugin = "net.thebugmc.gradle.sonatype-central-portal-publisher") group = "com.jetbrains.rd" @@ -102,7 +101,6 @@ open class KotlinJVMPlugin : Plugin { } } val deployToIntelliJ = rootProject.extra["deployMavenToIntelliJDependencies"].toString().toBoolean() -// val deployToSonatype = rootProject.extra["deployMavenToSonatype"].toString().toBoolean() repositories { maven { name = "artifacts" @@ -118,58 +116,8 @@ open class KotlinJVMPlugin : Plugin { } } } - -// if (deployToSonatype) { -// maven { -// name = "maven-central" -// url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/") -// credentials { -// username = rootProject.extra["sonatypeUser"].toString() -// password = rootProject.extra["sonatypePassword"].toString() -// } -// } -// } } } - -// if (deployToCentral) { -// val user = rootProject.extra["sonatypePortalUser"] as String -// val token = rootProject.extra["sonatypePortalToken"] as String -// project.configure { -// publishingType.set(PublishingType.USER_MANAGED) -// username.set(user) -// password.set(token) -// name.set(project.name) -// pom { -// url.set("https://github.com/JetBrains/rd") -// licenses { -// license { -// name.set("The Apache License, Version 2.0") -// url.set("https://www.apache.org/licenses/LICENSE-2.0") -// } -// } -// developers { -// // According to the reference, this should be the person(s) to be contacted about the project. -// developer { -// id.set("ivan.migalev") -// name.set("Ivan Migalev") -// email.set("ivan.migalev@jetbrains.com") -// } -// developer { -// id.set("mikhail.filippov") -// name.set("Mikhail Filippov") -// email.set("Mikhail.Filippov@jetbrains.com") -// } -// } -// scm { -// connection.set("scm:git:https://github.com/JetBrains/rd.git") -// url.set("https://github.com/JetBrains/rd") -// } -// } -// javadocJarTask.set(packageJavadoc) -// sourcesJarTask.set(sourceJar) -// } -// } } val test by tasks.getting(Test::class) {