I have a runnable jar with this build.gradle
apply plugin: 'java' apply plugin: 'application' manifest.mainAttributes("Main-Class" : "com.test.HelloWorld") repositories { mavenCentral() } dependencies { compile ( 'commons-codec:commons-codec:1.6', 'commons-logging:commons-logging:1.1.1', 'org.apache.httpcomponents:httpclient:4.2.1', 'org.apache.httpcomponents:httpclient:4.2.1', 'org.apache.httpcomponents:httpcore:4.2.1', 'org.apache.httpcomponents:httpmime:4.2.1', 'ch.qos.logback:logback-classic:1.0.6', 'ch.qos.logback:logback-core:1.0.6', 'org.slf4j:slf4j-api:1.6.0', 'junit:junit:4.+' ) }
but it works unsuccessfully because dependency bans cannot find.
and then add this code:
task copyToLib(type: Copy) { into "$buildDir/output/libs" from configurations.runtime }
but nothing will change ... I cannot find the output of the / libs folders ...
how can i copy libs jars dependencies to the specified folder or path?
copy dependencies gradle
jychan Feb 03 '13 at 5:36
source share