gmaven icon indicating copy to clipboard operation
gmaven copied to clipboard

Toolchain awereness

Open hsynkrtl opened this issue 3 years ago • 4 comments
trafficstars

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

hsynkrtl avatar Sep 12 '22 11:09 hsynkrtl

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?

jdillon avatar Sep 15 '22 17:09 jdillon

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

morm avatar Mar 23 '23 16:03 morm

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.

jdillon avatar Mar 29 '23 03:03 jdillon

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.

morm avatar Mar 29 '23 08:03 morm