oracle-samples / clara-rules

Forward-chaining rules in Clojure(Script)
http://www.clara-rules.org
Apache License 2.0
1.19k stars 111 forks source link

Better options for Java 9 compatibility in project.clj #412

Open WilliamParker opened 5 years ago

WilliamParker commented 5 years ago

In https://github.com/cerner/clara-rules/pull/409 we added a profile with arguments necessary to run under Java 9. This profile will only be used during development by those running a Java 9 JVM. I suspect that it is possible to autodetect this in the project setup and adjust accordingly. Alternatively other Clojure(Script) projects may have landed on other standard approach(es) that we might consider.

eraserhd commented 5 years ago

@WilliamParker It turns out that the module added for development on JDK9 was removed in JDK11, and that it was replaced with a set of normal Maven artifacts. If these artifacts also work on JDK9, then autodetecting is moot, as we can just make the java.xml.bind stuff dev dependencies.

/me goes off to make a patch