Last active
December 22, 2015 04:59
-
-
Save sys1yagi/6421248 to your computer and use it in GitHub Desktop.
copy dependencies jar to build/libs
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' | |
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