Add publishing

This commit is contained in:
Mike Primm 2022-01-22 18:54:44 -06:00
parent a3df8251f9
commit 5ae6353ec0
2 changed files with 16 additions and 2 deletions

View File

@ -1,11 +1,17 @@
description = "DynmapCoreAPI"
jar {
// archiveName = "${project.name}-${project.version}-all.jar"
destinationDir = file '../target'
classifier = "all"
}
artifacts {
archives jar
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
}

View File

@ -21,3 +21,11 @@ shadowJar {
artifacts {
archives shadowJar
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
}