Permalink
Browse files

Merge pull request #308 from aaboyd/master

Add ZIP distributions for Windows users
  • Loading branch information...
2 parents 2899b53 + 8047e70 commit e4cf0808b7ea2036f003c1d352335f3e1162427a @purplefox purplefox committed Jul 28, 2012
Showing with 19 additions and 3 deletions.
  1. +19 −3 build.gradle
View
@@ -224,10 +224,21 @@ task installApp(type: Sync, dependsOn: ['assemble']) {
from "build/$rootProject.name-$version"
}
-task dist(type: Tar, dependsOn: ['assemble', 'createDocs']) {
+task distZip(type: Zip, dependsOn : ['assemble', 'createDocs']) {
group = 'vert.x'
- description 'Create the distribution'
-
+ description 'Create the Zip distribution'
+
+ destinationDir file('build/distributions')
+ baseName = rootProject.name
+ version = rootProject.version
+ from 'build'
+ include "$rootProject.name-$version/**"
+}
+
+task distTar(type: Tar, dependsOn: ['assemble', 'createDocs']) {
+ group = 'vert.x'
+ description 'Create the GZIP distribution'
+
compression = org.gradle.api.tasks.bundling.Compression.GZIP
destinationDir file('build/distributions')
inputs.files files("build/$rootProject.name-$version")
@@ -239,6 +250,11 @@ task dist(type: Tar, dependsOn: ['assemble', 'createDocs']) {
include "$rootProject.name-$version/**"
}
+task dist(dependsOn: ['distTar', 'distZip']){
+ group = 'vert.x'
+ description 'Create distributions - tar.gz and zip'
+}
+
task release(dependsOn: ['clean', 'test', 'dist']) {
group = 'vert.x'
description 'Clean and fully test the current version before creating the distribution'

0 comments on commit e4cf080

Please sign in to comment.