Skip to content

Commit 1ee3329

Browse files
Rename kotlin version alias to jetbrains-kotlin
1 parent e55e9c8 commit 1ee3329

File tree

2 files changed

+14
-16
lines changed

2 files changed

+14
-16
lines changed

gradle/libs.versions.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[versions]
22
hubdle = "0.7.18"
33
hubdleCatalog = "0.3.13"
4-
kotlin = "2.1.0"
4+
jetbrains-kotlin = "2.1.0"
55

66
[libraries]
77
hubdle-catalog = { module = "com.javiersc.hubdle:hubdle-version-catalog", version.ref = "hubdleCatalog" }
8-
jetbrains-kotlin-gradle-plugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
8+
jetbrains-kotlin-gradle-plugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "jetbrains-kotlin" }
99

1010
[plugins]
1111
javiersc-hubdle = { id = "com.javiersc.hubdle", version.ref = "hubdle" }

settings.gradle.kts

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -45,22 +45,20 @@ val hubdleCatalogVersion: String =
4545

4646
buildscript {
4747
dependencies {
48-
constraints {
49-
val kotlinVersion: String =
50-
file("$rootDir/gradle/libs.versions.toml")
51-
.readLines()
52-
.first { it.contains("kotlin") }
53-
.split("\"")[1]
48+
val kotlinVersion: String =
49+
file("$rootDir/gradle/libs.versions.toml")
50+
.readLines()
51+
.first { it.contains("jetbrains-kotlin") }
52+
.split("\"")[1]
5453

55-
val kotlinModule =
56-
file("$rootDir/gradle/libs.versions.toml")
57-
.readLines()
58-
.first { it.contains("jetbrains-kotlin-gradle-plugin") }
59-
.split("\"")[1]
54+
val kotlinModule =
55+
file("$rootDir/gradle/libs.versions.toml")
56+
.readLines()
57+
.first { it.contains("jetbrains-kotlin-gradle-plugin") }
58+
.split("\"")[1]
6059

61-
val kotlinDependency = "$kotlinModule:$kotlinVersion"
62-
classpath(kotlinDependency)
63-
}
60+
val kotlinDependency = "$kotlinModule:$kotlinVersion"
61+
classpath(kotlinDependency)
6462
}
6563
}
6664

0 commit comments

Comments
 (0)