oseinvestment.blogg.se

Kotlin online
Kotlin online













kotlin online kotlin online

For example: the compileKotlin task has jvmTarget=1.8, and the compileJava task has (or inherits) targetCompatibility=15.Ĭonfigure the behavior of this check by setting the .mode property in the adle(.kts) file to:Įrror – the plugin fails the build the default value for projects on Gradle 8.0+. Different values of the jvmTarget attribute in the kotlin extension or task and targetCompatibility in the java extension or task cause JVM target incompatibility. Main and test source set compile tasks are not related.įor related tasks like these, the Kotlin Gradle plugin checks for JVM target compatibility. In the build module, you may have related compile tasks, for example:

kotlin online

+= 'src/main/myKotlin'Ĭheck for JVM target compatibility of related compile tasks















Kotlin online