Created
October 25, 2013 14:03
-
-
Save ykrkn/7155172 to your computer and use it in GitHub Desktop.
Gradle skeleton
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
apply plugin: 'application' | |
apply plugin: 'maven' | |
repositories { | |
mavenCentral() | |
mavenLocal() | |
} | |
dependencies { | |
runtime fileTree(dir: 'libs', include: '*.jar') | |
// compile 'org.codehaus.groovy:groovy-all:2.0.5' | |
// compile 'redis.clients:jedis:2.2.1' | |
} | |
task copyRuntimeDependencies(type:Copy) { | |
into "$buildDir/libs" | |
from configurations.compile | |
} | |
jar { | |
dependsOn copyRuntimeDependencies | |
manifest { attributes("Main-Class": "Main") } | |
} | |
mainClassName = "Main" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment