c198d4d90d
Now it could be only be applied inside settings file pluginManagement block. This will update both settings repositories and all projects in the repo with cache redirection settings.
44 lines
1.4 KiB
Groovy
44 lines
1.4 KiB
Groovy
pluginManagement {
|
|
apply from: '../repo/scripts/cache-redirector.settings.gradle.kts'
|
|
repositories {
|
|
maven { url "https://maven.pkg.jetbrains.space/kotlin/p/kotlin/kotlin-dependencies" }
|
|
mavenCentral()
|
|
gradlePluginPortal()
|
|
}
|
|
}
|
|
|
|
File versionPropertiesFile = new File(rootProject.projectDir.parentFile, "gradle/versions.properties")
|
|
def versionProperties = new Properties()
|
|
versionPropertiesFile.withInputStream {
|
|
versionProperties.load(it)
|
|
}
|
|
dependencyResolutionManagement {
|
|
components {
|
|
withModule("com.google.code.gson:gson") {
|
|
allVariants {
|
|
withDependencies {
|
|
add("com.google.code.gson:gson") {
|
|
version {
|
|
it.require(versionProperties['versions.gson'])
|
|
}
|
|
because("Force using same gson version because of https://github.com/google/gson/pull/1991")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
buildscript {
|
|
repositories {
|
|
maven { url "https://maven.pkg.jetbrains.space/kotlin/p/kotlin/kotlin-dependencies" }
|
|
mavenCentral()
|
|
}
|
|
|
|
def buildGradlePluginVersion = ext["kotlin.build.gradlePlugin.version"]
|
|
dependencies {
|
|
classpath("org.jetbrains.kotlin:kotlin-build-gradle-plugin:$buildGradlePluginVersion")
|
|
}
|
|
}
|
|
|
|
include "prepare-deps" |