Slackbot
12/19/2022, 3:31 AMVampire
12/19/2022, 11:23 AM./gradlew build
it complains that it uses an invalid target version.
When I try again with Java 17, I get compile errors from :micronaut-form-login:compileJava
David Ankin
12/20/2022, 2:01 AMVampire
12/20/2022, 12:46 PMio.micronaut.application
applied on :gallery-sharer
and on :micronaut-form-login-text
sibling projects individually.
This way they end up in different class loaders and so class GraalVMReachabilityMetadataService
is present twice, once on each class loader and incompatible as they are different class instances if they come from different class loaders.
So if classes from the one want to communicate with classes from the other, you get a problem.
If you make sure both projects get the classes from the same class loader by adding the classes to a common parent class loader it works.
So if you for example add a build.gradle
for the root project and put in it
plugins {
id 'io.micronaut.application' version '3.6.6' apply false
id 'io.micronaut.library' version '3.6.6' apply false
id 'com.github.johnrengelman.shadow' version '7.1.2' apply false
}
and also change the io.micronaut.application
version in :gallery-sharer
to be the same 3.6.6 version (or you can also leave out the version then), it works properly.David Ankin
12/22/2022, 12:04 AMVampire
12/22/2022, 12:54 AMVampire
12/22/2022, 12:54 AMVampire
12/22/2022, 12:54 AMVampire
12/22/2022, 12:54 AMDavid Ankin
12/22/2022, 12:55 AMVampire
12/22/2022, 12:56 AMVampire
12/22/2022, 1:01 AMDavid Ankin
12/22/2022, 1:03 AMDavid Ankin
12/22/2022, 1:07 AM