Fernando Valdez
04/25/2024, 8:25 AMCould 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:
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:
src
|---- integration
| |------- groovy
|---- main
| |------- groovy
| |------- resources
|---- test
| |------- groovy
| |------- resources
In my build.gradle
file I declare the sourceSets integration
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 🧵Fernando Valdez
04/25/2024, 8:26 AMThomas Broyer
04/25/2024, 8:45 AMat com.bmuschko.gradle.clover.CloverPlugin$SourceSetsResolver.isJavaTestSourceSetOf(CloverPlugin.groovy:403)
The Clover plugin is 3 years old and might be incompatible with Gradle 8Fernando Valdez
04/25/2024, 1:02 PM