Permalink
Browse files

Added distribution build for better release packages

  • Loading branch information...
benfortuna committed Aug 22, 2015
1 parent 764878f commit 0b77e92517d6f48b9fb4baf96ee2b9eea0aa431f
Showing with 15 additions and 2 deletions.
  1. +2 −2 .travis.yml
  2. +13 −0 build.gradle
View
@@ -10,10 +10,10 @@ deploy:
secure: DpTp3xxZrKP21I13G8dYY5EBra5tcf9TsF1y9oLRdOSoVvUe0XaOQ+9WPG2RgnuH1DPVj1n2Rr6emAZ84lSzz4H7T8gPYP4pLjmJBGyriGC7N3MTG2FCBn5l6DgTKNLxtfpek/b7nClif6vVTEse/T8/9an/Yszp9bbIZNNwStE=
file:
- build/distributions/ical4j-$RELEASE_VERSION.zip
- - build/distributions/ical4j-$RELEASE_VERSION.tar.gz
+ - build/distributions/ical4j-$RELEASE_VERSION.tgz
skip_cleanup: true
on:
tags: true
jdk: openjdk7
-before_deploy: "./gradlew assembleDist"
+before_deploy: "./gradlew assembleMainDist"
sudo: false
View
@@ -19,6 +19,7 @@ apply plugin: 'osgi'
apply plugin: 'maven'
apply plugin: 'signing'
apply plugin: 'release'
+apply plugin: 'distribution'
//apply plugin: 'github-pages'
//apply plugin: 'github'
@@ -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.