Compare commits

...

1 Commits

Author SHA1 Message Date
ffe0f3f33b small improvements 2025-05-16 09:18:31 +06:00
4 changed files with 12 additions and 10 deletions

View File

@@ -6,7 +6,9 @@ const val generateCentralSonatypeUploadingPartImports = """import java.nio.chars
import java.net.http.HttpClient
import java.net.http.HttpRequest
import java.net.http.HttpResponse"""
const val generateCentralSonatypeUploadingPart = """if ((project.hasProperty('SONATYPE_USER') || System.getenv('SONATYPE_USER') != null) && (project.hasProperty('SONATYPE_PASSWORD') || System.getenv('SONATYPE_PASSWORD') != null)) {
const val generateCentralSonatypeUploadingPart = """// This script work based on https://ossrh-staging-api.central.sonatype.com/swagger-ui/#/default/manual_upload_repository
// and getting available open repos and just uploading them
if ((project.hasProperty('SONATYPE_USER') || System.getenv('SONATYPE_USER') != null) && (project.hasProperty('SONATYPE_PASSWORD') || System.getenv('SONATYPE_PASSWORD') != null)) {
def taskName = "uploadSonatypePublication"
if (rootProject.tasks.names.contains(taskName) == false) {
rootProject.tasks.register(taskName) {

View File

@@ -61,11 +61,11 @@ publishing {
""" }}
}
}
repositories {
${repositories.joinToString("\n ") { it.build(" ") }}
}
}
}
repositories {
${repositories.joinToString("\n ") { it.build(" ") }}
}
}
${gpgSigning.generateMavenConfig()}
""".trimIndent()

View File

@@ -58,11 +58,11 @@ publishing {
""" }}
}
}
repositories {
${repositories.joinToString("\n ") { it.build(" ") }}
}
}
}
repositories {
${repositories.joinToString("\n ") { it.build(" ") }}
}
}
${gpgSigning.generateMavenConfig()}
""".trimIndent()

View File

@@ -42,9 +42,9 @@ publishing {
}""" }}
}
}
repositories {
${repositories.joinToString("\n ") { it.build(" ") }}
}
}
repositories {
${repositories.joinToString("\n ") { it.build(" ") }}
}
}
${gpgSigning.generateMavenConfig()}