Skip to content

Commit

Permalink
Solve #16
Browse files Browse the repository at this point in the history
  • Loading branch information
rachelcarmena committed May 17, 2020
1 parent 2fb5331 commit c23b0d9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
15 changes: 15 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ plugins {
id "com.gradle.plugin-publish" version "0.11.0"
id "org.jetbrains.kotlin.jvm" version "1.3.71"
id "com.jfrog.bintray" version "1.8.5"
id "com.jfrog.artifactory" version "4.15.2"
}

repositories {
Expand Down Expand Up @@ -81,6 +82,20 @@ def findPropertyOrEnv(String key) {
[project.properties[key], System.getenv(key)].find { it != null }
}

artifactory {
contextUrl = 'https://oss.jfrog.org'
publish {
repository {
repoKey = 'oss-snapshot-local'
username = findPropertyOrEnv("BINTRAY_USER") ?: "no.bintray.user"
password = findPropertyOrEnv("BINTRAY_API_KEY") ?: "no.bintray.api.key"
}
defaults {
publications 'HoodPublication'
}
}
}

bintray {
publish = true
user = findPropertyOrEnv("BINTRAY_USER") ?: "no.bintray.user"
Expand Down
4 changes: 2 additions & 2 deletions deploy-scripts/deploy_snapshot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ elif [ "$TRAVIS_BRANCH" != "$BRANCH" ]; then
elif ! [[ "$VERSION_NAME" =~ $VERSION_PATTERN ]]; then
echo "Skipping snapshot deployment '$VERSION_NAME': This is probably a pre-release build"
else
./gradlew bintrayUpload
./gradlew artifactoryPublish
echo "Snapshot '$VERSION_NAME' deployed!"
fi
fi

0 comments on commit c23b0d9

Please sign in to comment.