Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Groovy VisitorContext does not support reading annotation processor options #10725

Open
andriy-dmytruk opened this issue Apr 16, 2024 · 0 comments
Labels
lang: groovy Issues or features specific to Groovy type: improvement A minor improvement to an existing feature

Comments

@andriy-dmytruk
Copy link
Contributor

Expected Behavior

Annotation visitor options can be supplied to processors visiting Groovy sources with:

tasks.withType(GroovyCompile).configureEach {
    options.compilerArgs.add("-Amicronaut.jsonschema.baseUri=https://example.com/schemas")
}

The VisitorContext.getOptions() should provide these options. For example the JavaVisitorContext.getOptions gets the options from the ProcessingEnvironment.

Actual Behaviour

The GroovyVisitorContext.getOptions() only gets options from the system variables.

Steps To Reproduce

In this PR micronaut-projects/micronaut-json-schema#8 the test-suite-groovy cannot modify the annotation processing options the way test-suite can.

Environment Information

No response

Example Application

No response

Version

4.5.x

@sdelamo sdelamo added type: improvement A minor improvement to an existing feature lang: groovy Issues or features specific to Groovy labels Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang: groovy Issues or features specific to Groovy type: improvement A minor improvement to an existing feature
Projects
Status: No status
Development

No branches or pull requests

2 participants