aboutsummaryrefslogtreecommitdiffstats
path: root/buildSrc/src/main/kotlin/Publishing.kt
diff options
context:
space:
mode:
Diffstat (limited to 'buildSrc/src/main/kotlin/Publishing.kt')
-rw-r--r--buildSrc/src/main/kotlin/Publishing.kt18
1 files changed, 0 insertions, 18 deletions
diff --git a/buildSrc/src/main/kotlin/Publishing.kt b/buildSrc/src/main/kotlin/Publishing.kt
index 5b191bfa..8c6dd5de 100644
--- a/buildSrc/src/main/kotlin/Publishing.kt
+++ b/buildSrc/src/main/kotlin/Publishing.kt
@@ -40,12 +40,8 @@ fun MavenPom.configureMavenCentralMetadata(project: Project) {
}
fun mavenRepositoryUri(): URI {
- // TODO -SNAPSHOT detection can be made here as well
val repositoryId: String? = System.getenv("libs.repository.id")
return if (repositoryId == null) {
- // Using implicitly created staging, for MPP it's likely to be a mistake because
- // publication on TeamCity will create 3 independent staging repositories
- System.err.println("Warning: using an implicitly created staging for coroutines")
URI("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
} else {
URI("https://oss.sonatype.org/service/local/staging/deployByRepositoryId/$repositoryId")
@@ -62,20 +58,6 @@ fun configureMavenPublication(rh: RepositoryHandler, project: Project) {
}
}
-fun configureBintrayPublication(rh: RepositoryHandler, project: Project) {
- rh.maven {
- val user = "kotlin"
- val repo = "kotlinx"
- val name = "kotlinx.coroutines"
- url = URI("https://api.bintray.com/maven/$user/$repo/$name/;publish=0;override=0")
-
- credentials {
- username = project.findProperty("bintrayUser") as? String ?: System.getenv("BINTRAY_USER")
- password = project.findProperty("bintrayApiKey") as? String ?: System.getenv("BINTRAY_API_KEY")
- }
- }
-}
-
fun signPublicationIfKeyPresent(project: Project, publication: MavenPublication) {
val keyId = project.getSensitiveProperty("libs.sign.key.id")
val signingKey = project.getSensitiveProperty("libs.sign.key.private")