PurpurMC / Purpur

Purpur is a drop-in replacement for Paper servers designed for configurability, and new fun and exciting gameplay features.
https://purpurmc.org
MIT License
2.01k stars 358 forks source link

gradle dont work java 16 #225

Closed Euphillya closed 3 years ago

Euphillya commented 3 years ago

Describe the bug Impossible compile with java 16

To Reproduce Use jdk 16

Screenshots or Videos java.lang.IllegalAccessError: class org.gradle.internal.compiler.java.ClassNameCollector

TheDGOfficial commented 3 years ago

Not a Purpur problem. See https://github.com/gradle/gradle/issues/13481 .

To resolve it, you have four common options:

1) Use JDK 15 for running Gradle but fork the compiler to use/target JDK 16,

2) Use Gradle 7.0 milestone/RC versions,

3) Just use and target Java 15 or 11,

4) Add all required —add-opens directives (or —illegal-access=permit)

jpenilla commented 3 years ago

Not a Purpur issue. See the comment from @TheDGOfficial.