jamesfredley commented on PR #15677:
URL: https://github.com/apache/grails-core/pull/15677#issuecomment-4568953607
Added the negative test in cb750435a9 (`GrailsMicronautSpec`). It covers
both directions of the guard:
- `grails-micronaut` + JDK 25 -> the `org.apache.grails:grails-micronaut`
dependency is rendered.
- `grails-micronaut` + JDK 21 -> generation is rejected with
`IllegalArgumentException: grails-micronaut requires JDK 25 or later (selected:
JDK 21).`
Verified locally (run with `-PskipMicronautProjects`, which the Forge
composite needs on JDK 21 because of `includeBuild('..')`):
```
GrailsMicronautSpec > test grails-micronaut adds the dependency when JDK 25
is selected PASSED
GrailsMicronautSpec > test grails-micronaut is rejected when the selected
JDK is below 25 PASSED
BUILD SUCCESSFUL
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]