I have an eclipse workspace with several java projects under one gradle parent. One of the projects is a common library used as a dependency in the other ones and since we upgraded gradle and switched from
dependencies {
compile project(':com.example.common')
testCompile "junit:junit:4.13.2"
testCompile project(':com.example.common').sourceSets.test.output
testRuntime "org.junit.vintage:junit-vintage-engine:5.8.2"
}
to
dependencies {
api project(':com.example.common')
testImplementation "junit:junit:4.13.2"
testImplementation project(':com.example.common').sourceSets.test.output
testRuntimeOnly "org.junit.vintage:junit-vintage-engine:5.8.2"
}
I have to clean build the whole workspace any time I change anything in the common project. Otherwise eclipse doesn’t see the changes and running the main class using the eclipse launch configuration uses some cached classes from somewhere that don’t contain the changes.
Any advice on getting a smoother development environment with similar to the old testCompile
behaviour?