Skip to content

Commit

Permalink
adds bintray-release plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
musichin committed Jun 24, 2019
1 parent d45855c commit cf248de
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ script:
- |
if [ -z "$TRAVIS_TAG" ]
then
./gradlew clean build bintrayUpload -PbintrayUser=$BINTRAY_USER -PbintrayKey=$BINTRAY_KEY -PdryRun=true
./gradlew clean :ntpclock:build :ntpclock:bintrayUpload -PbintrayUser=$BINTRAY_USER -PbintrayKey=$BINTRAY_KEY -PdryRun=true
else
./gradlew clean build bintrayUpload -PbintrayUser=$BINTRAY_USER -PbintrayKey=$BINTRAY_KEY -PdryRun=false
./gradlew clean :ntpclock:build :ntpclock:bintrayUpload -PbintrayUser=$BINTRAY_USER -PbintrayKey=$BINTRAY_KEY -PdryRun=false
fi
#after_success:
Expand Down
21 changes: 20 additions & 1 deletion ntpclock/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
apply plugin: 'com.android.library'

apply plugin: 'kotlin-android'
apply plugin: 'com.novoda.bintray-release'

buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.novoda:bintray-release:0.9.1'
}
}

android {
compileSdkVersion 29
Expand All @@ -27,3 +36,13 @@ dependencies {
androidTestImplementation 'junit:junit:4.12'
androidTestImplementation "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
}

publish {
userOrg = 'musichin'
groupId = 'de.musichin.ntpclock'
artifactId = name
publishVersion = System.getenv("TRAVIS_TAG") ?: 'snapshot'
desc = 'NTP Clock'
licences = ['MIT']
website = 'https://github.com/musichin/NtpClock'
}

0 comments on commit cf248de

Please sign in to comment.