Update publish instructions
This commit is contained in:
parent
5ec55d786a
commit
acd5f1c02c
1 changed files with 3 additions and 5 deletions
|
@ -17,8 +17,8 @@ plugins {
|
||||||
group = "dev.zontreck"
|
group = "dev.zontreck"
|
||||||
archivesBaseName = "EventsBus"
|
archivesBaseName = "EventsBus"
|
||||||
|
|
||||||
|
java.toolchain.languageVersion = JavaLanguageVersion.of(8)
|
||||||
java {
|
java {
|
||||||
toolchain.languageVersion = JavaLanguageVersion.of(8)
|
|
||||||
withSourcesJar()
|
withSourcesJar()
|
||||||
withJavadocJar()
|
withJavadocJar()
|
||||||
}
|
}
|
||||||
|
@ -56,23 +56,20 @@ dependencies {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
def MAVEN_PASSWORD_PROPERTY = "AriasCreationsMavenPassword"
|
|
||||||
|
|
||||||
|
def MAVEN_PASSWORD_PROPERTY = "AriasCreationsMavenPassword"
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
mavenJava(MavenPublication) {
|
mavenJava(MavenPublication) {
|
||||||
//from components.java
|
|
||||||
artifact jar
|
artifact jar
|
||||||
artifact sourcesJar
|
artifact sourcesJar
|
||||||
artifact javadocJar
|
artifact javadocJar
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
url = "https://maven.zontreck.com/repository/zontreck"
|
url = "https://maven.zontreck.com/repository/zontreck"
|
||||||
name = "ariascreations"
|
name = "ariascreations"
|
||||||
group = "dev.zontreck"
|
|
||||||
if (project.findProperty(MAVEN_PASSWORD_PROPERTY) != null) {
|
if (project.findProperty(MAVEN_PASSWORD_PROPERTY) != null) {
|
||||||
credentials {
|
credentials {
|
||||||
username = "admin"
|
username = "admin"
|
||||||
|
@ -82,3 +79,4 @@ publishing {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue