Skip to content

Instantly share code, notes, and snippets.

@sys1yagi
Last active December 22, 2015 04:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sys1yagi/6421248 to your computer and use it in GitHub Desktop.
Save sys1yagi/6421248 to your computer and use it in GitHub Desktop.
copy dependencies jar to build/libs
apply plugin: 'java'
apply plugin: 'eclipse'
sourceCompatibility = 1.7
version = '1.0'
repositories {
mavenCentral()
}
dependencies {
compile 'commons-io:commons-io:2.4'
testCompile group: 'junit', name: 'junit', version: '4.+'
}
sourceSets{
main{
java{
srcDir 'src'
}
}
test{
java{
srcDir 'test'
}
}
}
task Release(type: Copy, dependsOn:[assemble]) {
from configurations.compile into "${buildDir}/libs"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment