Build: Replace Bintray with Space for kotlin-dependencies repository (KTI-466)
This commit is contained in:
+3
-12
@@ -42,18 +42,9 @@ publishing {
|
||||
|
||||
repositories {
|
||||
maven {
|
||||
name = "bintray"
|
||||
url = uri("https://api.bintray.com/maven/kotlin/kotlin-dependencies/kotlin-build-gradle-plugin")
|
||||
authentication {
|
||||
val mavenUser = findProperty("kotlin.bintray.user") as String?
|
||||
val mavenPass = findProperty("kotlin.bintray.password") as String?
|
||||
if (mavenUser != null && mavenPass != null) {
|
||||
credentials {
|
||||
username = mavenUser
|
||||
password = mavenPass
|
||||
}
|
||||
}
|
||||
}
|
||||
name = "kotlinSpace"
|
||||
url = uri("https://maven.pkg.jetbrains.space/kotlin/p/kotlin/kotlin-dependencies")
|
||||
credentials(org.gradle.api.artifacts.repositories.PasswordCredentials::class)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+3
-21
@@ -1,17 +1,10 @@
|
||||
import com.jfrog.bintray.gradle.BintrayExtension
|
||||
|
||||
buildscript {
|
||||
repositories {
|
||||
maven("https://plugins.gradle.org/m2")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
classpath("com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4")
|
||||
}
|
||||
}
|
||||
|
||||
apply(plugin = "maven-publish")
|
||||
apply(plugin = "com.jfrog.bintray")
|
||||
|
||||
val archives by configurations
|
||||
|
||||
@@ -24,20 +17,9 @@ configure<PublishingExtension> {
|
||||
|
||||
repositories {
|
||||
maven {
|
||||
url = uri("${rootProject.buildDir}/internal/repo")
|
||||
name = "kotlinSpace"
|
||||
url = uri("https://maven.pkg.jetbrains.space/kotlin/p/kotlin/kotlin-dependencies")
|
||||
credentials(org.gradle.api.artifacts.repositories.PasswordCredentials::class)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
configure<BintrayExtension> {
|
||||
user = findProperty("bintray.user") as String?
|
||||
key = findProperty("bintray.apikey") as String?
|
||||
|
||||
setPublications("maven")
|
||||
|
||||
pkg.apply {
|
||||
repo = "kotlin-dependencies"
|
||||
name = project.name
|
||||
userOrg = "kotlin"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user