Update publish instructions

This commit is contained in:
Zontreck 2024-02-06 18:51:23 -07:00
parent 5ec55d786a
commit acd5f1c02c

View file

@ -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 {
} }
} }
} }