melix / mrjar-gradle

Example of how to produce a MRJAR with Gradle
Apache License 2.0
20 stars 5 forks source link

Building a MRJAR with Gradle

WARNING: Before doing this, we strongly recommend to read this blog post which highlights the consequences of your decision.

Cross-compilation

Run ./gradlew run and Gradle will:

It will automatically download the right JDKs for you if you don't have them.

There's a dependency between the Java 11 classes and the Java 8 classes too, showing that it's not an issue.