Skip to content

Instantly share code, notes, and snippets.

@ykrkn
Created October 25, 2013 14:03
Show Gist options
  • Save ykrkn/7155172 to your computer and use it in GitHub Desktop.
Save ykrkn/7155172 to your computer and use it in GitHub Desktop.
Gradle skeleton
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