Skip to content

Commit

Permalink
Copy libs on compile
Browse files Browse the repository at this point in the history
  • Loading branch information
founderio committed Aug 8, 2016
1 parent 1921e74 commit 8d527c6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,17 @@ dependencies {
compile 'org.apache.httpcomponents:httpcore:4.3.2'
compile 'com.google.code.gson:gson:2.2.4'
}

task copyDependencies(type: Copy) {
into "$buildDir/libs/lib"
from configurations.runtime
}

assemble.dependsOn copyDependencies

jar {
manifest.attributes(
'Class-Path': configurations.runtime.files.collect { 'lib/' + it.name }.join(' '),
'Main-Class': 'net.teamio.gtams.server.GTamsServer'
)
}

0 comments on commit 8d527c6

Please sign in to comment.