Skip to content

Commit 1bc254d

Browse files
committed
build: fixed compile error after change of Kotlin version
1 parent 98ef4d2 commit 1bc254d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

build-logic/src/main/kotlin/modelix-language-config.gradle.kts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
import gradle.kotlin.dsl.accessors._9d6accdeac6876c73060866945fb6d8c.java
1817
import org.jetbrains.kotlin.gradle.dsl.KotlinJvmProjectExtension
1918
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
2019
import org.jetbrains.kotlin.gradle.plugin.KotlinMultiplatformPluginWrapper
@@ -25,9 +24,11 @@ import org.modelix.MODELIX_JDK_VERSION
2524
import org.modelix.MODELIX_JVM_TARGET
2625
import org.modelix.MODELIX_KOTLIN_API_VERSION
2726

28-
java {
29-
toolchain {
30-
languageVersion.set(JavaLanguageVersion.of(MODELIX_JDK_VERSION))
27+
plugins.withType<JavaPlugin> {
28+
extensions.configure<JavaPluginExtension> {
29+
toolchain {
30+
languageVersion.set(JavaLanguageVersion.of(MODELIX_JDK_VERSION))
31+
}
3132
}
3233
}
3334

0 commit comments

Comments
 (0)