Skip to content

Commit 19bf6b2

Browse files
Abduqodiri Qurbonzodaqurbonzoda
authored andcommitted
Adopt build scripts for K2 build infrastructure
1 parent abcda73 commit 19bf6b2

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

build.gradle.kts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import org.jetbrains.kotlin.gradle.dsl.KotlinJsCompile
22

33
buildscript {
44
dependencies {
5-
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:2.0.20")
5+
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${rootProject.properties["kotlin_version"]}")
66
}
77
}
88

@@ -37,6 +37,11 @@ apiValidation {
3737
allprojects {
3838
repositories {
3939
mavenCentral()
40+
41+
val kotlinRepoUrl = providers.gradleProperty("kotlin_repo_url").orNull
42+
if (kotlinRepoUrl != null) {
43+
maven(kotlinRepoUrl)
44+
}
4045
}
4146

4247
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>> {

gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ group=org.jetbrains.kotlinx
22
version=0.4
33
versionSuffix=SNAPSHOT
44

5+
kotlin_version=2.0.20
6+
57
org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8

settings.gradle.kts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ pluginManagement {
22
repositories {
33
maven("https://maven.pkg.jetbrains.space/kotlin/p/kotlinx/maven")
44
gradlePluginPortal()
5+
6+
val kotlinRepoUrl = providers.gradleProperty("kotlin_repo_url").orNull
7+
if (kotlinRepoUrl != null) {
8+
maven(kotlinRepoUrl)
9+
}
510
}
611
}
712

0 commit comments

Comments
 (0)