File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import org.jetbrains.kotlin.gradle.dsl.KotlinJsCompile
2
2
3
3
buildscript {
4
4
dependencies {
5
- classpath(" org.jetbrains.kotlin:kotlin-gradle-plugin:2.0.20 " )
5
+ classpath(" org.jetbrains.kotlin:kotlin-gradle-plugin:${rootProject.properties[ " kotlin_version " ]} " )
6
6
}
7
7
}
8
8
@@ -37,6 +37,11 @@ apiValidation {
37
37
allprojects {
38
38
repositories {
39
39
mavenCentral()
40
+
41
+ val kotlinRepoUrl = providers.gradleProperty(" kotlin_repo_url" ).orNull
42
+ if (kotlinRepoUrl != null ) {
43
+ maven(kotlinRepoUrl)
44
+ }
40
45
}
41
46
42
47
tasks.withType< org.jetbrains.kotlin.gradle.dsl.KotlinCompile <* >> {
Original file line number Diff line number Diff line change @@ -2,4 +2,6 @@ group=org.jetbrains.kotlinx
2
2
version =0.4
3
3
versionSuffix =SNAPSHOT
4
4
5
+ kotlin_version =2.0.20
6
+
5
7
org.gradle.jvmargs =-Xmx2g -XX:MaxMetaspaceSize =2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding =UTF-8
Original file line number Diff line number Diff line change @@ -2,6 +2,11 @@ pluginManagement {
2
2
repositories {
3
3
maven(" https://maven.pkg.jetbrains.space/kotlin/p/kotlinx/maven" )
4
4
gradlePluginPortal()
5
+
6
+ val kotlinRepoUrl = providers.gradleProperty(" kotlin_repo_url" ).orNull
7
+ if (kotlinRepoUrl != null ) {
8
+ maven(kotlinRepoUrl)
9
+ }
5
10
}
6
11
}
7
12
You can’t perform that action at this time.
0 commit comments