Closed antonydenyer closed 4 years ago
I was trying to do the following in my build.gradle
build.gradle
compileIntegrationTestKotlin { kotlinOptions { jvmTarget = JavaVersion.VERSION_1_8 } }
but am getting the error "Could not find method compileIntegrationTestKotlin()"
I've worked round the issue with:
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all { kotlinOptions { jvmTarget = JavaVersion.VERSION_1_8 } }
But, conceivably you might want to have your tests use 1.8 and implementation 1.6
Cannot reproduce this; most likely the first block referencing the compileIntegrationTestKotlin task was declared before the testSets in the Gradle script.
compileIntegrationTestKotlin
testSets
I was trying to do the following in my
build.gradle
but am getting the error "Could not find method compileIntegrationTestKotlin()"
I've worked round the issue with:
But, conceivably you might want to have your tests use 1.8 and implementation 1.6