aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMeredith Espinosa <goclonefilms@gmail.com>2019-07-09 16:43:10 -0700
committerMeredith Espinosa <goclonefilms@gmail.com>2019-07-09 16:43:10 -0700
commit8cede55d8b00be9dd32936cf9ea5ff42b63f73da (patch)
tree09b38917aeaab7f8404398765b999c4b1931ba24
parent9d1d70d5321dc0556b39e1c6544a2f182facbc5c (diff)
downloadLibGui-8cede55d8b00be9dd32936cf9ea5ff42b63f73da.tar.gz
LibGui-8cede55d8b00be9dd32936cf9ea5ff42b63f73da.tar.bz2
LibGui-8cede55d8b00be9dd32936cf9ea5ff42b63f73da.zip
add artifactory publish code
-rw-r--r--build.gradle27
-rwxr-xr-x[-rw-r--r--]gradlew0
2 files changed, 27 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
index b8342b2..80e16fe 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,6 +1,7 @@
plugins {
id 'fabric-loom' version '0.2.3-SNAPSHOT'
id 'maven-publish'
+ id "com.jfrog.artifactory" version "4.9.0"
}
sourceCompatibility = JavaVersion.VERSION_1_8
@@ -87,3 +88,29 @@ publishing {
// mavenLocal()
}
}
+
+artifactory {
+ if (project.hasProperty("artifactoryUsername")) {
+ contextUrl = "http://server.bbkr.space:8081/artifactory/"
+ publish {
+ repository {
+ if (version.contains("SNAPSHOT")) {
+ repoKey = "libs-snapshot"
+ } else {
+ repoKey = "libs-release"
+ }
+
+ username = artifactoryUsername
+ password = artifactoryPassword
+ }
+ defaults {
+ publications("maven")
+
+ publishArtifacts = true
+ publishPom = true
+ }
+ }
+ } else {
+ println "Cannot configure artifactory; please define ext.artifactoryUsername and ext.artifactoryPassword before running artifactoryPublish"
+ }
+} \ No newline at end of file
diff --git a/gradlew b/gradlew
index cccdd3d..cccdd3d 100644..100755
--- a/gradlew
+++ b/gradlew