Update build.gradle for md_5 repo
No longer use Artifactory as our repo host
This commit is contained in:
parent
976d00dcc2
commit
2e14df134c
47
build.gradle
47
build.gradle
@ -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,41 +58,21 @@ 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 {
|
mavenDeployer {
|
||||||
classifier = 'javadoc'
|
repository(url: "http://repo.md-5.net/content/repositories/snapshots/")
|
||||||
|
pom.groupId = 'LibsDisguises'
|
||||||
|
pom.version = disguisesVersion + "-SNAPSHOT"
|
||||||
|
pom.artifactId = 'LibsDisguises'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
artifactoryPublish.skip = false
|
|
||||||
|
|
||||||
artifactory {
|
|
||||||
contextUrl = 'http://localhost:8081/artifactory'
|
|
||||||
publish {
|
|
||||||
repository {
|
|
||||||
repoKey = 'libs-snapshot-local'
|
|
||||||
username = '${artifactory_user}'
|
|
||||||
password = '${artifactory_password}'
|
|
||||||
}
|
|
||||||
defaults {
|
|
||||||
publications('mavenJava')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
resolve {
|
|
||||||
repoKey = 'repo'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
file('libs').mkdirs()
|
file('libs').mkdirs()
|
||||||
|
Loading…
Reference in New Issue
Block a user