So groovy doc uses javaparser which has a way to s...
# community-support
j
So groovy doc uses javaparser which has a way to set the language level. If you specify groovydoc to a newer version, is there a way to set the language level for the java parser? This is typically done with
StaticJavaParser.getConfiguration().setLanguageLevel(ParserConfiguration.LanguageLevel.JAVA_17)
but i'm not sure how to do this with gradle's groovydoc task. Is this a groovydoc change or a gradle change?
v
I'd say both. Looking at https://docs.groovy-lang.org/docs/next/html/documentation/groovydoc.html#Groovydoc-Ant I don't see a way to set the language level, so Gradle also cannot set it, as it uses that task.
👍 1
j
I'm working with Paul from Groovy already to fix reproducibility of groovydoc, so I'll first have a conversation with him on this. thank you!
👌 1