This repository has been archived on 2024-08-26. You can view files and clone it, but cannot push or open issues or pull requests.
Dominion/build.gradle.kts

55 lines
1.5 KiB
Plaintext
Raw Normal View History

2024-08-01 17:06:57 +08:00
plugins {
id("java")
id("com.github.johnrengelman.shadow") version "8.1.1"
}
group = "cn.lunadeer"
version = "1.44.4-beta"
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
}
// utf-8
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
2024-08-01 17:06:57 +08:00
subprojects {
apply(plugin = "java")
apply(plugin = "com.github.johnrengelman.shadow")
repositories {
mavenCentral()
mavenLocal()
maven("https://oss.sonatype.org/content/groups/public")
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://jitpack.io")
maven("https://repo.mikeprimm.com/")
maven("https://ssl.lunadeer.cn:14454/repository/maven-snapshots/")
}
2024-08-01 17:06:57 +08:00
dependencies {
compileOnly("com.github.BlueMap-Minecraft:BlueMapAPI:v2.6.2")
compileOnly("us.dynmap:DynmapCoreAPI:3.4")
implementation("cn.lunadeer:MinecraftPluginUtils:1.3.4-SNAPSHOT")
implementation("org.yaml:snakeyaml:2.0")
}
2024-08-01 17:06:57 +08:00
tasks.withType<ProcessResources> {
// replace @version@ in plugin.yml with project version
filesMatching("**/plugin.yml") {
filter {
it.replace("@version@", project.version.toString())
}
}
}
2024-08-01 18:03:21 +08:00
tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar> {
archiveClassifier.set("")
archiveVersion.set(project.version.toString())
dependsOn(tasks.withType<ProcessResources>())
}
}