This project uses gradle to install external dependencies, build the project (jar files), and execute tests.
The version of gradle required is Gradle 4.6, or as specified in /gradle/wrapper/gradle-wrapper.properties.
Run ./gradlew instead of the globally installed gradle on your machine to execute gradle tasks.
This ensures that the correct version of gradle is used, and also downloads the required version of gradle.
Run ./gradlew buildJavaCommonsCore to build the JavaCommonsCore module.
Run ./gradlew jar to build the project and package as a jar.
Run ./gradlew shadowJar to build the project and package as a shadow jar (dependencies are shaded)
Run ./gradlew fatJar to build the project and package as a fat jar (dependencies are included, and not shaded)
Run ./gradlew buildAll to build all 3 jars (jar, shadow jar, and fat jar).
Run ./gradlew testAndBuildAll to run full test suite and build all 3 jars (jar, shadow jar, and fat jar).
- Right click "settings.gradle" and click "Import Gradle Project"
- In the Gradle Tool Window, click the wrench, and then "Gradle Settings"
- Check "Download external annotations for dependencies" - this will allow code hinting to work
- Set "Use Gradle from" to "'gradle-wrapper.properties' file" to make sure it runs the correct version of gradle