Good morning to all the community. I am performin...
# community-support
f
Good morning to all the community. I am performing a migration within one of my application services. Currently I have migrated from Gradle 7.X to Gradle 8.1.1 and I am encountering the following error when executing the task `./gradlew build`:
Copy code
Could not determine the dependencies of task ':integrationTest'.
> Could not get unknown property 'outputDir' for integration Java source of type org.gradle.api.internal.file.DefaultSourceDirectorySet.
There is a
test.gradle
file that looks like this:
Copy code
test {
    maxParallelForks = 3
    minHeapSize = "3g"
    maxHeapSize = "3g"
    jvmArgs('-Duser.timezone=UTC')
    systemProperty('micronaut.environments', System.getProperty('micronaut.environments'))
    useJUnitPlatform()
}

task integrationTest(type: Test) {
    testClassesDirs = sourceSets.integration.output.classesDirs
    classpath = sourceSets.integration.runtimeClasspath
}

check.dependsOn integrationTest
And this is the only place where the integrationTest task is referenced. The folder structure of my project is as follows:
Copy code
src
|---- integration
|        |------- groovy
|---- main
|        |------- groovy
|        |------- resources
|---- test
|        |------- groovy
|        |------- resources
In my
build.gradle
file I declare the sourceSets integration
Copy code
sourceSets {
    integration {
        groovy.srcDir "$projectDir/src/integration/groovy"
        resources.srcDir "$projectDir/src/integration/resources"
        compileClasspath += main.output + test.output
        runtimeClasspath += main.output + test.output
    }
}
I am quite stuck at this point, any information would be welcome and I thank you in advance for the space. I will be sharing in this thread the complete log 🧵
complete log:
t
Copy code
at com.bmuschko.gradle.clover.CloverPlugin$SourceSetsResolver.isJavaTestSourceSetOf(CloverPlugin.groovy:403)
The Clover plugin is 3 years old and might be incompatible with Gradle 8
f
Thank you very much for your quick response, do you know if using Clover is viable or would Sonarqube work better?