unbroken-dome / gradle-testsets-plugin

A plugin for the Gradle build system that allows specifying test sets (like integration or acceptance tests).
MIT License
230 stars 50 forks source link

Could not find method compileIntegrationTestKotlin() #112

Closed antonydenyer closed 4 years ago

antonydenyer commented 4 years ago

I was trying to do the following in my 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

tkrullmann commented 4 years ago

Cannot reproduce this; most likely the first block referencing the compileIntegrationTestKotlin task was declared before the testSets in the Gradle script.