Skip to content

Commit

Permalink
Added distribution build for better release packages
Browse files Browse the repository at this point in the history
  • Loading branch information
benfortuna committed Aug 22, 2015
1 parent 764878f commit 0b77e92
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Expand Up @@ -10,10 +10,10 @@ deploy:
secure: DpTp3xxZrKP21I13G8dYY5EBra5tcf9TsF1y9oLRdOSoVvUe0XaOQ+9WPG2RgnuH1DPVj1n2Rr6emAZ84lSzz4H7T8gPYP4pLjmJBGyriGC7N3MTG2FCBn5l6DgTKNLxtfpek/b7nClif6vVTEse/T8/9an/Yszp9bbIZNNwStE= secure: DpTp3xxZrKP21I13G8dYY5EBra5tcf9TsF1y9oLRdOSoVvUe0XaOQ+9WPG2RgnuH1DPVj1n2Rr6emAZ84lSzz4H7T8gPYP4pLjmJBGyriGC7N3MTG2FCBn5l6DgTKNLxtfpek/b7nClif6vVTEse/T8/9an/Yszp9bbIZNNwStE=
file: file:
- build/distributions/ical4j-$RELEASE_VERSION.zip - build/distributions/ical4j-$RELEASE_VERSION.zip
- build/distributions/ical4j-$RELEASE_VERSION.tar.gz - build/distributions/ical4j-$RELEASE_VERSION.tgz
skip_cleanup: true skip_cleanup: true
on: on:
tags: true tags: true
jdk: openjdk7 jdk: openjdk7
before_deploy: "./gradlew assembleDist" before_deploy: "./gradlew assembleMainDist"
sudo: false sudo: false
13 changes: 13 additions & 0 deletions build.gradle
Expand Up @@ -19,6 +19,7 @@ apply plugin: 'osgi'
apply plugin: 'maven' apply plugin: 'maven'
apply plugin: 'signing' apply plugin: 'signing'
apply plugin: 'release' apply plugin: 'release'
apply plugin: 'distribution'
//apply plugin: 'github-pages' //apply plugin: 'github-pages'
//apply plugin: 'github' //apply plugin: 'github'


Expand Down Expand Up @@ -164,3 +165,15 @@ uploadArchives {
} }
} }
} }

distributions {
main {
contents {
from { ['README.md', 'LICENSE', 'AUTHORS', 'CHANGELOG', 'build/docs', 'build/libs']}
}
}
}

distTar {
compression = Compression.GZIP
}

0 comments on commit 0b77e92

Please sign in to comment.