Created
August 13, 2018 01:33
-
-
Save kevinadi/873164ad0d8c73c94c49e6a5a2017cea to your computer and use it in GitHub Desktop.
Basic build.gradle with fat jar capability
This file contains hidden or 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
plugins { | |
id 'java' | |
id 'application' | |
} | |
mainClassName = 'App' | |
dependencies { | |
testCompile 'junit:junit:4.12' | |
} | |
repositories { | |
jcenter() | |
} | |
jar { | |
from { | |
(configurations.runtime).collect { | |
it.isDirectory() ? it : zipTree(it) | |
} | |
} | |
manifest { | |
attributes('Main-Class': 'App' ) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment