collinsmith / riiablo

Diablo II remade using Java and LibGDX
http://riiablo.com
Apache License 2.0
869 stars 99 forks source link

Java 15 does not contain javax.annotations #141

Open collinsmith opened 2 years ago

collinsmith commented 2 years ago

Need to add https://mvnrepository.com/artifact/javax.annotation/javax.annotation-api/1.3.2 as a dependency for riiablo:core in order for builds to work. I'm pretty sure this worked before with <13, so maybe this is a newer change. Java 16 is incompatible with current version of gradle so cannot test.

collinsmith commented 2 years ago

Added dependency and was able to compile, need to validate that the dependency propagates across projects correctly (in correct place in the build scripts).

See 508f08d8ef40a3ddd76b4aafb8ac0085ced77425

collinsmith commented 2 years ago

Was apart of Java EE, removed in JDK 11, resolution is to use javax.annotation:javax.annotation-api as I've been https://www.oracle.com/java/technologies/javase/11-relnote-issues.html#JDK-8190378