Reduce dependency on teamcity.jetbrains.com when downloading dependencies
This commit is contained in:
committed by
TeamCityServer
parent
6ecb5a1bd3
commit
272081d8cf
+18
-3
@@ -421,9 +421,24 @@ allprojects {
|
|||||||
kotlinBuildLocalRepo(project)
|
kotlinBuildLocalRepo(project)
|
||||||
mirrorRepo?.let(::maven)
|
mirrorRepo?.let(::maven)
|
||||||
|
|
||||||
internalBootstrapRepo?.let(::maven)
|
internalBootstrapRepo?.let(::maven)?.apply {
|
||||||
bootstrapKotlinRepo?.let(::maven)
|
content {
|
||||||
maven(protobufRepo)
|
includeGroup("org.jetbrains.kotlin")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
bootstrapKotlinRepo?.let(::maven)?.apply {
|
||||||
|
content {
|
||||||
|
includeGroup("org.jetbrains.kotlin")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
maven(protobufRepo) {
|
||||||
|
content {
|
||||||
|
includeModule("org.jetbrains.kotlin", "protobuf-lite")
|
||||||
|
includeModule("org.jetbrains.kotlin", "protobuf-relocated")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
maven(intellijRepo)
|
maven(intellijRepo)
|
||||||
|
|
||||||
|
|||||||
@@ -34,12 +34,16 @@ val Project.intellijRepo get() =
|
|||||||
|
|
||||||
val Project.internalBootstrapRepo: String? get() =
|
val Project.internalBootstrapRepo: String? get() =
|
||||||
when {
|
when {
|
||||||
bootstrapKotlinRepo?.startsWith("https://buildserver.labs.intellij.net") == true ->
|
bootstrapKotlinRepo?.startsWith("https://buildserver.labs.intellij.net") == true
|
||||||
|
|| bootstrapKotlinRepo?.startsWith("https://teamcity.jetbrains.com") == true ->
|
||||||
bootstrapKotlinRepo!!.replace("artifacts/content/maven", "artifacts/content/internal/repo")
|
bootstrapKotlinRepo!!.replace("artifacts/content/maven", "artifacts/content/internal/repo")
|
||||||
else -> "https://teamcity.jetbrains.com/guestAuth/app/rest/builds/buildType:(id:Kotlin_KotlinPublic_Aggregate),number:$bootstrapKotlinVersion," +
|
|
||||||
"branch:default:any/artifacts/content/internal/repo/"
|
|
||||||
}
|
|
||||||
|
|
||||||
|
project.kotlinBuildProperties.isJpsBuildEnabled ->
|
||||||
|
"https://teamcity.jetbrains.com/guestAuth/app/rest/builds/buildType:(id:Kotlin_KotlinPublic_Aggregate)," +
|
||||||
|
"number:$bootstrapKotlinVersion,branch:default:any/artifacts/content/internal/repo/"
|
||||||
|
|
||||||
|
else -> null
|
||||||
|
}
|
||||||
|
|
||||||
fun Project.commonDep(coord: String): String {
|
fun Project.commonDep(coord: String): String {
|
||||||
val parts = coord.split(':')
|
val parts = coord.split(':')
|
||||||
|
|||||||
@@ -17,11 +17,6 @@ var Project.bootstrapKotlinRepo: String?
|
|||||||
extensions.extraProperties.set("bootstrapKotlinRepo", value)
|
extensions.extraProperties.set("bootstrapKotlinRepo", value)
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated("Obsolete, use internalBootstrapRepo instead.")
|
|
||||||
val Project.internalKotlinRepo: String?
|
|
||||||
get() = "https://teamcity.jetbrains.com/guestAuth/app/rest/builds/buildType:(id:Kotlin_KotlinPublic_Aggregate),number:$bootstrapKotlinVersion," +
|
|
||||||
"branch:default:any/artifacts/content/internal/repo"
|
|
||||||
|
|
||||||
fun Project.kotlinBootstrapFrom(defaultSource: BootstrapOption) {
|
fun Project.kotlinBootstrapFrom(defaultSource: BootstrapOption) {
|
||||||
val teamCityBootstrapVersion = kotlinBuildProperties.teamCityBootstrapVersion
|
val teamCityBootstrapVersion = kotlinBuildProperties.teamCityBootstrapVersion
|
||||||
val customBootstrapVersion = kotlinBuildProperties.customBootstrapVersion
|
val customBootstrapVersion = kotlinBuildProperties.customBootstrapVersion
|
||||||
|
|||||||
Reference in New Issue
Block a user