Skip to content

Commit

Permalink
Merge pull request #31 from boneill42/improving_release_mojo
Browse files Browse the repository at this point in the history
Improving release mojo
  • Loading branch information
Brian O'Neill committed May 3, 2016
2 parents 264cc52 + 3961ecf commit e1a591a
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions build.gradle
Expand Up @@ -13,7 +13,7 @@ targetCompatibility = 1.8

release {
versionPropertyFile = 'gradle.properties'
buildTasks = ['build', 'copyRuntimeLibs', 'batchZip']
buildTasks = ['build', 'dist']
scmAdapters = [
net.researchgate.release.GitAdapter
]
Expand Down Expand Up @@ -59,12 +59,12 @@ dependencies {
compile group: 'org.eclipse.jetty', name: 'jetty-http', version:'9.0.2.v20130417'
}

task copyRuntimeLibs(type: Copy) {
task copyRuntimeLibs(dependsOn: 'build', type: Copy) {
from configurations.runtime
into 'build/libs'
}

task batchZip(type: Zip) {
task zipDistribution(dependsOn: 'copyRuntimeLibs', type: Zip) {
into("koupler-${version}") {
from 'LICENSE.txt'
from 'README.md'
Expand All @@ -81,3 +81,14 @@ task batchZip(type: Zip) {
}
}
}

task dist (dependsOn: 'zipDistribution', type: Copy){
from 'build/distributions/'
include '*.zip'
into 'releases'
}

clean{
delete "target"
}

0 comments on commit e1a591a

Please sign in to comment.