Skip to content

Commit

Permalink
Publish: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ForNeVeR committed Sep 18, 2024
1 parent 664ccb2 commit 485d952
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 59 deletions.
6 changes: 0 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
1 change: 0 additions & 1 deletion buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ open class KotlinJVMPlugin : Plugin<Project> {
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"

Expand Down Expand Up @@ -102,7 +101,6 @@ open class KotlinJVMPlugin : Plugin<Project> {
}
}
val deployToIntelliJ = rootProject.extra["deployMavenToIntelliJDependencies"].toString().toBoolean()
// val deployToSonatype = rootProject.extra["deployMavenToSonatype"].toString().toBoolean()
repositories {
maven {
name = "artifacts"
Expand All @@ -118,58 +116,8 @@ open class KotlinJVMPlugin : Plugin<Project> {
}
}
}

// 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<CentralPortalExtension> {
// 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("[email protected]")
// }
// developer {
// id.set("mikhail.filippov")
// name.set("Mikhail Filippov")
// email.set("[email protected]")
// }
// }
// 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) {
Expand Down

0 comments on commit 485d952

Please sign in to comment.