patric-r / jvmtop

Java monitoring for the command-line, profiler included
GNU General Public License v2.0
1.22k stars 252 forks source link

Adding gradle build support to the project. #92

Open mbjarland opened 7 years ago

mbjarland commented 7 years ago

A few notes on this commit:

o build an executable jar file using './gradlew' on osx/*nix or './gradlew.bat' on windows (no arguments). This will create an executable jar file at build/libs/. No gradle installation is required, it will be auto-downloaded on first-call as long as JAVA_HOME is set. o we are using gradle 2.14.1 as that is the latest version of gradle which supports java 6 as the build VM. This is to maximize compatibility with whoever is building the project. o we are using the gradle shadow plugin to build an executable jar file o I modified the default location of the gradle wrapper file (gradle/wrapper/gradle-wrapper.jar) as having another thing in the root directory called gradlexx screws up tab completion for the ./gradlew commands. o the build.gradle file contains a few comments and links on the rest of the details. o the 'gradlew' and 'gradlew.bat' files are auto generated by the gradle wrapper. See relevant link in build.gradle for details. o build only tested on java 6, but I would assume it works on later versions.

patric-r commented 7 years ago

Thank you for your PR! Some time ago, we migrated to maven.

Please excuse my question: What benefits do you expect from additionally supporting gradle, and are they worth maintaining two build systems?