Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Commit

Permalink
Create snapshot version by default
Browse files Browse the repository at this point in the history
  • Loading branch information
krakowski committed Oct 12, 2018
1 parent 8fc950e commit a439d1a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
- stage: build
script: ./gradlew build
- stage: snapshot
script: ./gradlew artifactoryPublish --exclude-task test -Dsnapshot=true -Dbintray.user=${BINTRAY_USER} -Dbintray.key=${BINTRAY_KEY} -Dbuild.number=${TRAVIS_BUILD_NUMBER}
script: ./gradlew artifactoryPublish --exclude-task test -Dbintray.user=${BINTRAY_USER} -Dbintray.key=${BINTRAY_KEY} -Dbuild.number=${TRAVIS_BUILD_NUMBER}
- stage: release
script: ./gradlew bintrayUpload --exclude-task test -Dbintray.user=${BINTRAY_USER} -Dbintray.key=${BINTRAY_KEY} -Dbuild.number=${TRAVIS_BUILD_NUMBER}
script: ./gradlew bintrayUpload --exclude-task test -Drelease=true -Dbintray.user=${BINTRAY_USER} -Dbintray.key=${BINTRAY_KEY} -Dbuild.number=${TRAVIS_BUILD_NUMBER}

before_deploy: ./gradlew distZip --exclude-task test

Expand Down
14 changes: 7 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ buildscript {
}

dependencies {
classpath "de.hhu.bsinfo:dxbuild:0.2.0" + (Boolean.valueOf(System.getProperty('snapshot')) ? '-SNAPSHOT' : '')
classpath "de.hhu.bsinfo:dxbuild:0.2.0" + (Boolean.valueOf(System.getProperty('release')) ? '' : '-SNAPSHOT')
}
}

Expand All @@ -28,7 +28,7 @@ plugins {

apply plugin: 'dxbuild'
group = 'de.hhu.bsinfo'
version = '0.5.0' + (Boolean.valueOf(System.getProperty("snapshot")) ? "-SNAPSHOT" : "")
version = '0.5.0' + (Boolean.valueOf(System.getProperty('release')) ? '' : '-SNAPSHOT')

sourceCompatibility = '1.8'
targetCompatibility = '1.8'
Expand Down Expand Up @@ -85,11 +85,11 @@ dependencies {
compileOnly 'org.projectlombok:lombok:1.18.2'

api 'commons-cli:commons-cli:1.4'
api 'de.hhu.bsinfo:dxmem:0.5.0' + (Boolean.valueOf(System.getProperty('snapshot')) ? '-SNAPSHOT' : '')
api 'de.hhu.bsinfo:dxnet:0.5.0' + (Boolean.valueOf(System.getProperty('snapshot')) ? '-SNAPSHOT' : '')
api 'de.hhu.bsinfo:dxlog:0.5.0' + (Boolean.valueOf(System.getProperty('snapshot')) ? '-SNAPSHOT' : '')
api 'de.hhu.bsinfo:dxmon:0.2.0' + (Boolean.valueOf(System.getProperty('snapshot')) ? '-SNAPSHOT' : '')
nativeApi 'de.hhu.bsinfo:dxutils:0.5.0' + (Boolean.valueOf(System.getProperty('snapshot')) ? '-SNAPSHOT' : '')
api 'de.hhu.bsinfo:dxmem:0.5.0' + (Boolean.valueOf(System.getProperty('release')) ? '' : '-SNAPSHOT')
api 'de.hhu.bsinfo:dxnet:0.5.0' + (Boolean.valueOf(System.getProperty('release')) ? '' : '-SNAPSHOT')
api 'de.hhu.bsinfo:dxlog:0.5.0' + (Boolean.valueOf(System.getProperty('release')) ? '' : '-SNAPSHOT')
api 'de.hhu.bsinfo:dxmon:0.2.0' + (Boolean.valueOf(System.getProperty('release')) ? '' : '-SNAPSHOT')
nativeApi 'de.hhu.bsinfo:dxutils:0.5.0' + (Boolean.valueOf(System.getProperty('release')) ? '' : '-SNAPSHOT')

implementation 'com.google.guava:guava:26.0-jre'
implementation 'org.apache.zookeeper:zookeeper:3.4.13'
Expand Down

0 comments on commit a439d1a

Please sign in to comment.