Aosen Xiong
08/30/2024, 9:18 PMsourceSets {
testannotations {
java {
srcDirs = ['src/testannotations/java']
}
}
}
and I want to use it in my root project as a variable
def javadocDirs = [
project(':checker').sourceSets.testannotations.allJava,
]
I got the following error
* What went wrong:
A problem occurred evaluating root project 'checker-framework'.
> Could not get unknown property 'testannotations' for SourceSet container of type org.gradle.api.internal.tasks.DefaultSourceSetContainer.
Any idea to fix it?Vampire
08/31/2024, 10:22 AM