groovy / gmaven

Groovy integration for Maven
http://groovy.github.io/gmaven/
Apache License 2.0
51 stars 21 forks source link

Toolchain awereness #29

Open hsynkrtl opened 2 years ago

hsynkrtl commented 2 years ago

Make groovy-maven-plugin aware of settings maven-toolchains-plugin. In speciall switching the jvm.

jdillon commented 2 years ago

what "switching the jvm" do you mean? gmaven 2 uses the existing JVM to execute Groovy implementations, not sure how becoming toolchain aware helps, but maybe i'm missing something?

morm commented 1 year ago

I support this issue. It's a real problem the plugin not supporting toolchains. https://maven.apache.org/guides/mini/guide-using-toolchains.html

jdillon commented 1 year ago

FTR I still do not really get what the value of "toolchains" are here, but if someone can explain it to me or provide a PR to express the value i'm certainly open to considering supporting it.

morm commented 1 year ago

Here's my scenario: I'm working on a large project that's composed of various modules. While each module depends on the parent's properties, it also has its own dependencies and requires specific JDK settings for source and target versions. To build the parent project with all its modules, I'm using toolchains that support multiple JDK versions (1.8, 11, 13, and 17). Most of the plugins I'm using also support toolchains. However, I've encountered an issue with gmaven, which is used by one of the new modules I'm working on.