diff --git a/build.gradle.kts b/build.gradle.kts new file mode 100644 index 0000000..72b01d2 --- /dev/null +++ b/build.gradle.kts @@ -0,0 +1,29 @@ +plugins { + id("java") + id("com.github.johnrengelman.shadow") version "8.1.1" +} + +group = "cn.lunadeer" +version = "1.42.9-beta" + +repositories { + mavenCentral() + 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/") +} + +dependencies { + compileOnly("io.papermc.paper:paper-api:1.21-R0.1-SNAPSHOT") + compileOnly("com.github.BlueMap-Minecraft:BlueMapAPI:v2.6.2") + compileOnly("us.dynmap:DynmapCoreAPI:3.4") + + shadow("cn.lunadeer:MinecraftPluginUtils:1.3.4-SNAPSHOT") + shadow("org.yaml:snakeyaml:2.0") +} + +java { + toolchain.languageVersion.set(JavaLanguageVersion.of(21)) +} diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 0000000..e69de29 diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..0d8ab51 --- /dev/null +++ b/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1 @@ +distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip diff --git a/pom.xml b/pom.xml deleted file mode 100644 index d9a1b17..0000000 --- a/pom.xml +++ /dev/null @@ -1,109 +0,0 @@ - - - 4.0.0 - - cn.lunadeer - Dominion - 1.42.9-beta - jar - - Dominion - - - 1.8 - UTF-8 - - - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.8.1 - - ${java.version} - ${java.version} - - - - org.apache.maven.plugins - maven-shade-plugin - 3.2.4 - - - package - - shade - - - - - - - - src/main/resources - true - - - - - - - spigotmc-repo - https://hub.spigotmc.org/nexus/content/repositories/snapshots/ - - - sonatype - https://oss.sonatype.org/content/groups/public/ - - - papermc - https://repo.papermc.io/repository/maven-public/ - - - jitpack.io - https://jitpack.io - - - lunadeer-repo - https://ssl.lunadeer.cn:14454/repository/maven-snapshots/ - - - MikeRepo - https://repo.mikeprimm.com/ - - - - - - dev.folia - folia-api - 1.20.1-R0.1-SNAPSHOT - provided - - - cn.lunadeer - MinecraftPluginUtils - 1.3.4-SNAPSHOT - - - com.github.BlueMap-Minecraft - BlueMapAPI - v2.6.2 - provided - - - org.yaml - snakeyaml - 2.0 - - - us.dynmap - dynmap-api - 3.4-beta-3 - provided - - - diff --git a/settings.gradle.kts b/settings.gradle.kts new file mode 100644 index 0000000..3b5f9f8 --- /dev/null +++ b/settings.gradle.kts @@ -0,0 +1 @@ +rootProject.name = "Dominion" \ No newline at end of file diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 9136a42..f6cd063 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,5 +1,5 @@ name: Dominion -version: '${project.version}' +version: '${version}' main: cn.lunadeer.dominion.Dominion api-version: '1.20' load: STARTUP