Update build.gradle for md_5 repo

No longer use Artifactory as our repo host
This commit is contained in:
NavidK0 2016-03-30 20:35:45 -04:00
parent 976d00dcc2
commit 2e14df134c

View File

@ -1,7 +1,6 @@
plugins { plugins {
id 'java' id 'java'
id 'maven-publish' id "maven"
id "com.jfrog.artifactory" version "3.1.1"
} }
println 'Compiling LibsDisguises via Gradle ver. ' + gradle.gradleVersion println 'Compiling LibsDisguises via Gradle ver. ' + gradle.gradleVersion
@ -59,40 +58,20 @@ artifacts {
archives jar archives jar
} }
publishing { uploadArchives {
publications { repositories {
mavenJava(MavenPublication) { mavenDeployer {
groupId 'LibsDisguises' repository(url: "http://repo.md-5.net/content/groups/public/")
artifactId 'LibsDisguises' pom.groupId = 'LibsDisguises'
version disguisesVersion + '-SNAPSHOT' pom.version = disguisesVersion
from components.java pom.artifactId = 'LibsDisguises'
artifact sourceJar {
classifier = 'sources'
}
artifact javadocJar {
classifier = 'javadoc'
}
} }
} mavenDeployer {
} repository(url: "http://repo.md-5.net/content/repositories/snapshots/")
pom.groupId = 'LibsDisguises'
pom.version = disguisesVersion + "-SNAPSHOT"
artifactoryPublish.skip = false pom.artifactId = 'LibsDisguises'
artifactory {
contextUrl = 'http://localhost:8081/artifactory'
publish {
repository {
repoKey = 'libs-snapshot-local'
username = '${artifactory_user}'
password = '${artifactory_password}'
} }
defaults {
publications('mavenJava')
}
}
resolve {
repoKey = 'repo'
} }
} }