Skip to content

Commit 7caa361

Browse files
authored
Enabled Kotlin BT API only for modules using Kotlin 2.1+ (#5859)
Follow up on #5785 to fix the failing `arrow` test.
1 parent a211b40 commit 7caa361

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

example/thirdparty/arrow/build.mill

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ object `package` extends Module {
131131
def kotlinLanguageVersion = majorVersion(kotlinVersion())
132132
def kotlinApiVersion = majorVersion(kotlinVersion())
133133
def kotlinExplicitApi = ArrowMultiplatformModule.this.kotlinExplicitApi
134-
def kotlincUseBtApi = false
135134

136135
override def sources: T[Seq[PathRef]] = Task.Sources({
137136
val sourcesRootPath = moduleDir / "src"

libs/kotlinlib/src/mill/kotlinlib/KotlinModule.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,11 +395,11 @@ trait KotlinModule extends JavaModule with KotlinModuleApi { outer =>
395395

396396
/**
397397
* Enable use of new Kotlin Build API (Beta).
398-
* Enabled by default for Kotlin 2.x targetting the JVM.
398+
* Enabled by default for Kotlin 2.1+ for JVM.
399399
*/
400400
def kotlincUseBtApi: T[Boolean] = Task {
401401
Version.parse(kotlinVersion())
402-
.isNewerThan(Version.parse("2.0.0"))(using Version.IgnoreQualifierOrdering)
402+
.isNewerThan(Version.parse("2.1.0"))(using Version.IgnoreQualifierOrdering)
403403
}
404404

405405
/**

0 commit comments

Comments
 (0)