Skip to content

Commit a4a5646

Browse files
committed
Enhance automatic kotlin versioning
1 parent 582fea9 commit a4a5646

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

settings.gradle.kts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ pluginManagement {
1212
val fabric_kotlin_version: String by settings
1313
plugins {
1414
id("fabric-loom") version loom_version
15-
id("org.jetbrains.kotlin.jvm") version fabric_kotlin_version.split("+kotlin.")[1]
15+
id("org.jetbrains.kotlin.jvm") version
16+
fabric_kotlin_version
17+
.split("+kotlin.")[1] // Grabs the sentence after `+kotlin.`
18+
.split("+")[0] // Ensures sentences like `+build.1` are ignored
1619
}
1720
}

0 commit comments

Comments
 (0)