I'm using Gradle 7.4.2. I'm trying to see what it uses for generatedSourceOutputDirectory
(among other CompileOptions
.
I've tried:
tasks.compileJava {
println(options.generatedSourceOutputDirectory.toString())
}
but this prints an unhelpful:
task ':lib:compileJava' property 'options.generatedSourceOutputDirectory'
Sleuthing around the code itself on Github, I see that's its defaults are (seemingly) mangaged via XML code here .
How can I see what the current compile options are?
The option generatedSourceOutputDirectory is of type DirectoryProperty ; therefore, to get the value that it holds, you need to call get() .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.