Created
July 26, 2016 08:11
-
-
Save ShaunPlummer/46d6dfd4d3e4019d3d4988c841e4aa28 to your computer and use it in GitHub Desktop.
Minimal build script to package a runnable jar of a command line application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'java' | |
version = '1.0' | |
jar { | |
manifest { | |
attributes 'Implementation-Title': 'Project Name', | |
'Implementation-Version': version, | |
'Main-Class': 'package.className' | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Changing the version to an
int
and thepackage.className
to reflect the project. For example if the Main.java is under thejava
directory use'Main-Class': 'Main'