Skip to content

Commit

Permalink
Travis+gradle: add openjdk8/9; use travis (build+commit) to change kS…
Browse files Browse the repository at this point in the history
…AR version (#157)

* update gradle to 4.10.2

* add openjdk8/9; adjust kSAR Version with build_commit version (first try)

* adjust - sed extended regex; show gradle.properties before and after change
  • Loading branch information
Pitterling authored Sep 27, 2018
1 parent a9704b2 commit bd7d83a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,19 @@ cache:
- $HOME/.gradle/wrapper

before_install:
- echo "[INFO] BUILD_COMMIT> $BUILD_COMMIT"
- cat gradle.properties
- echo "[INFO] BUILD_COMMIT> $BUILD_COMMIT"
- sed -i -r "/version/s/([[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+)/\1-$BUILD_COMMIT/g" gradle.properties
- cat gradle.properties

script: ./gradlew check shadowJar

after_success:
- ls -lR build/

matrix:
include:
- jdk: oraclejdk8
- jdk: oraclejdk9
- jdk: openjdk8
- jdk: openjdk9
if: tag IS blank

deploy:
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip

0 comments on commit bd7d83a

Please sign in to comment.