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:
@@ -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()
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user