aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle27
1 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