diff --git a/build.gradle b/build.gradle index 008488d..007cdde 100644 --- a/build.gradle +++ b/build.gradle @@ -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 { @@ -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" diff --git a/deploy-scripts/deploy_snapshot.sh b/deploy-scripts/deploy_snapshot.sh index d84af72..f7a3814 100755 --- a/deploy-scripts/deploy_snapshot.sh +++ b/deploy-scripts/deploy_snapshot.sh @@ -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 \ No newline at end of file +fi