geoscript-groovy
geoscript-groovy copied to clipboard
java 11/13 compilation and split problems
This is more a question than an issue I guess.
I am trying to upgrade the Hortonmachine project to the latest geoscript and geotools >= 22 and in teh process I would like to migrate it to be compatible with java 13, but I am having quite some troubles.
Currently I am hanging on the fact that the groovy modules geoscript depends on are not java 11 ready in the sense that don't obey to the package split matter. Several jar contain the same package and that is not allowed.
Did anyone try to compile geoscript with a java 13?
Thanks.
I am still on Java 8, so I haven't run into this.
Hello Andrea,
Are you building geoscript from source? I was able to do a fresh checkout, build, and run using the following env.
MacOSX Catalina From SDKMan:
ant: 1.10.1 gradle: 6.1.1 grails: 4.0.1 groovy: 2.5.9 java: 13.0.1-zulu kotlin: 1.3.61 maven: 3.6.3 micronaut: 1.2.10 springboot: 2.2.4.RELEASE
geoscript-groovy: 1.15-SNAPSHOT geotools: 23-SNAPSHOT
I did get a few warnings at startup though:
WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 (file:/tmp/geoscript-groovy/target/geoscript-groovy-1.15-SNAPSHOT-app/geoscript-groovy-1.15-SNAPSHOT/lib/groovy-2.5.9.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int) WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.vmplugin.v7.Java7$1 WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release
Hope this helps, --scottie
On Wed, Jan 29, 2020 at 7:55 PM Jared Erickson [email protected] wrote:
I am still on Java 8, so I haven't run into this.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/geoscript/geoscript-groovy/issues/55?email_source=notifications&email_token=AAOULGLXHVR3N7LKEYTZ2DTRAIQQTA5CNFSM4KM734SKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKJJ7OI#issuecomment-580034489, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOULGPZ5IALO6C4V44JZQLRAIQQTANCNFSM4KM734SA .