mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-04 14:38:53 +00:00
Fix API publishing
This commit is contained in:
1 parent
d959651a0a
commit
583c111727
2 files changed
+29
-16
No files matched your search
@@ -71,6 +71,35 @@ subprojects {
|
|||||||
destinationDirectory.set(file("$rootDir/target"))
|
destinationDirectory.set(file("$rootDir/target"))
|
||||||
archiveClassifier.set('')
|
archiveClassifier.set('')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// API publishing
|
||||||
|
if (['bukkit'].contains(project.name)) {
|
||||||
|
java {
|
||||||
|
withSourcesJar()
|
||||||
|
withJavadocJar()
|
||||||
|
}
|
||||||
|
sourcesJar {
|
||||||
|
destinationDirectory.set(file("$rootDir/target"))
|
||||||
|
}
|
||||||
|
javadocJar {
|
||||||
|
destinationDirectory.set(file("$rootDir/target"))
|
||||||
|
}
|
||||||
|
shadowJar.dependsOn(sourcesJar, javadocJar)
|
||||||
|
|
||||||
|
publishing {
|
||||||
|
publications {
|
||||||
|
mavenJava(MavenPublication) {
|
||||||
|
groupId = 'net.william278'
|
||||||
|
artifactId = 'huskhomes'
|
||||||
|
version = "$rootProject.version"
|
||||||
|
artifact shadowJar
|
||||||
|
artifact javadocJar
|
||||||
|
artifact sourcesJar
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
jar.dependsOn shadowJar
|
jar.dependsOn shadowJar
|
||||||
clean.delete "$rootDir/target"
|
clean.delete "$rootDir/target"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,3 @@
|
|||||||
plugins {
|
|
||||||
id 'maven-publish'
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation project(path: ':common')
|
implementation project(path: ':common')
|
||||||
|
|
||||||
@@ -52,15 +48,3 @@ shadowJar {
|
|||||||
relocate 'io.papermc.lib', 'net.william278.huskhomes.libraries.paperlib'
|
relocate 'io.papermc.lib', 'net.william278.huskhomes.libraries.paperlib'
|
||||||
relocate 'me.lucko.commodore', 'net.william278.huskhomes.libraries.commodore'
|
relocate 'me.lucko.commodore', 'net.william278.huskhomes.libraries.commodore'
|
||||||
}
|
}
|
||||||
|
|
||||||
publishing {
|
|
||||||
publications {
|
|
||||||
mavenJava(MavenPublication) {
|
|
||||||
groupId = 'net.william278'
|
|
||||||
artifactId = 'huskhomes'
|
|
||||||
version = "$rootProject.version"
|
|
||||||
|
|
||||||
artifact jar
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in new issue
Block a user