https://kotlinlang.org logo
Title
b

Big Chungus

11/06/2021, 10:00 AM
Did you try setting jvm target to 1.8 in gradle (for both, kotlin and java plugins)
r

rcd27

11/06/2021, 10:03 AM
I did this one for Kotlin.
Not sure how to do this for Java. Trying.
b

Big Chungus

11/06/2021, 10:06 AM
Try also doing it for java {}
r

rcd27

11/06/2021, 10:11 AM
Have build with this new block. The problem remains.
b

Big Chungus

11/06/2021, 10:12 AM
Looks like java 9- is not supported then
Which kinda makes sense, since jpackage is used under the hood, which depends on java 9 features
r

rcd27

11/06/2021, 10:20 AM
Looks like the issue of library is known and I can add
--add-exports java.base/sun.nio.ch=ALL-UNNAMED
flag when building my app.
❤️ 1
@Big Chungus I've stuck with java-modularity and all this stuff, the solution was to
exclude
the failing lib and new version of it manually. Thanks for you participation, it is easier to cope with something when people try to help you.
b

Big Chungus

11/06/2021, 11:05 AM
Glad you got it sorted