mirror of
https://github.com/Xiao-MoMi/Custom-Fishing.git
synced 2025-12-19 15:09:24 +00:00
63 lines
2.2 KiB
Plaintext
63 lines
2.2 KiB
Plaintext
plugins {
|
|
id("io.github.goooler.shadow") version "8.1.8"
|
|
id("maven-publish")
|
|
}
|
|
|
|
repositories {
|
|
maven("https://jitpack.io/") // rtag
|
|
maven("https://papermc.io/repo/repository/maven-public/")
|
|
maven("https://repo.extendedclip.com/content/repositories/placeholderapi/") // papi
|
|
maven("https://oss.sonatype.org/content/repositories/snapshots")
|
|
}
|
|
|
|
dependencies {
|
|
implementation(project(":common"))
|
|
implementation(files("libs/boosted-yaml-${rootProject.properties["boosted_yaml_version"]}.jar"))
|
|
implementation("net.kyori:adventure-api:${rootProject.properties["adventure_bundle_version"]}") {
|
|
exclude(module = "adventure-bom")
|
|
exclude(module = "checker-qual")
|
|
exclude(module = "annotations")
|
|
}
|
|
implementation("com.saicone.rtag:rtag:${rootProject.properties["rtag_version"]}")
|
|
implementation("com.saicone.rtag:rtag-item:${rootProject.properties["rtag_version"]}")
|
|
compileOnly("dev.folia:folia-api:${rootProject.properties["paper_version"]}-R0.1-SNAPSHOT")
|
|
compileOnly("com.google.code.gson:gson:${rootProject.properties["gson_version"]}")
|
|
compileOnly("me.clip:placeholderapi:${rootProject.properties["placeholder_api_version"]}")
|
|
compileOnly("com.github.Xiao-MoMi:Sparrow-Heart:${rootProject.properties["sparrow_heart_version"]}")
|
|
}
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(17)
|
|
}
|
|
}
|
|
|
|
tasks.withType<JavaCompile> {
|
|
options.encoding = "UTF-8"
|
|
options.release.set(17)
|
|
dependsOn(tasks.clean)
|
|
}
|
|
|
|
tasks {
|
|
shadowJar {
|
|
archiveClassifier = ""
|
|
archiveFileName = "CustomFishing-${rootProject.properties["project_version"]}.jar"
|
|
relocate("net.kyori", "net.momirealms.customfishing.libraries")
|
|
relocate("dev.dejvokep", "net.momirealms.customfishing.libraries")
|
|
relocate ("com.saicone.rtag", "net.momirealms.customfishing.libraries.rtag")
|
|
}
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
create<MavenPublication>("mavenJava") {
|
|
groupId = "net.momirealms"
|
|
artifactId = "CustomFishing"
|
|
version = rootProject.version.toString()
|
|
artifact(tasks.shadowJar)
|
|
}
|
|
}
|
|
}
|