Go back to maven-publish plugin

This commit is contained in:
NavidK0 2016-03-30 20:55:08 -04:00
parent 2e14df134c
commit 6776a9b427

View File

@ -1,6 +1,6 @@
plugins { plugins {
id 'java' id 'java'
id "maven" id 'maven-publish'
} }
println 'Compiling LibsDisguises via Gradle ver. ' + gradle.gradleVersion println 'Compiling LibsDisguises via Gradle ver. ' + gradle.gradleVersion
@ -58,19 +58,27 @@ artifacts {
archives jar archives jar
} }
uploadArchives { publishing {
repositories { publications {
mavenDeployer { mavenJava(MavenPublication) {
repository(url: "http://repo.md-5.net/content/groups/public/") groupId 'LibsDisguises'
pom.groupId = 'LibsDisguises' artifactId 'LibsDisguises'
pom.version = disguisesVersion version disguisesVersion + '-SNAPSHOT'
pom.artifactId = 'LibsDisguises' from components.java
artifact sourceJar {
classifier = 'sources'
} }
mavenDeployer { artifact javadocJar {
repository(url: "http://repo.md-5.net/content/repositories/snapshots/") classifier = 'javadoc'
pom.groupId = 'LibsDisguises' }
pom.version = disguisesVersion + "-SNAPSHOT" }
pom.artifactId = 'LibsDisguises' }
repositories {
maven {
url "http://repo.md-5.net/content/repositories/releases/"
}
maven {
url "http://repo.md-5.net/content/repositories/snapshots/"
} }
} }
} }