9
0
mirror of https://github.com/Xiao-MoMi/Custom-Fishing.git synced 2025-12-19 15:09:24 +00:00

Update build.gradle.kts

This commit is contained in:
XiaoMoMi
2023-09-12 22:31:49 +08:00
parent 592c5ba804
commit bae266be0b

View File

@@ -52,6 +52,7 @@ subprojects {
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
options.release.set(17)
}
tasks.shadowJar {
@@ -60,6 +61,18 @@ subprojects {
archiveFileName.set("CustomFishing-" + project.name + "-" + project.version + ".jar")
}
if ("api" == project.name) {
publishing {
publications {
create("maven_public", MavenPublication::class) {
groupId = "net.momirealms"
artifactId = "CustomFishing-API"
from(components.getByName("java"))
}
}
}
}
// tasks.javadoc.configure {
// options.quiet()
// }