mirror of
https://github.com/Xiao-MoMi/Custom-Fishing.git
synced 2025-12-20 07:29:23 +00:00
Update build.gradle.kts
This commit is contained in:
@@ -52,6 +52,7 @@ subprojects {
|
|||||||
|
|
||||||
tasks.withType<JavaCompile> {
|
tasks.withType<JavaCompile> {
|
||||||
options.encoding = "UTF-8"
|
options.encoding = "UTF-8"
|
||||||
|
options.release.set(17)
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.shadowJar {
|
tasks.shadowJar {
|
||||||
@@ -60,6 +61,18 @@ subprojects {
|
|||||||
archiveFileName.set("CustomFishing-" + project.name + "-" + project.version + ".jar")
|
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 {
|
// tasks.javadoc.configure {
|
||||||
// options.quiet()
|
// options.quiet()
|
||||||
// }
|
// }
|
||||||
|
|||||||
Reference in New Issue
Block a user