diff --git a/build.gradle b/build.gradle index 4cc91db..9cefb72 100644 --- a/build.gradle +++ b/build.gradle @@ -2,8 +2,8 @@ plugins { id 'java' } -group 'cn.hamster3.mc.plugin' -version '1.0.0-SNAPSHOT' +group = 'cn.hamster3.mc.plugin' +version = '1.0.0-SNAPSHOT' subprojects { apply plugin: 'java' diff --git a/gradle.properties b/gradle.properties index 0d6448f..06d4bab 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,7 @@ org.gradle.jvmargs=-Xmx2G +spigot_api_version=1.12.2-R0.1-SNAPSHOT +bungee_api_version=1.19-R0.1-SNAPSHOT hamster_core_version=1.0.0-SNAPSHOT hamster_ball_version=1.0.0-SNAPSHOT placeholder_api_version=2.11.2 \ No newline at end of file diff --git a/hamster-admin-command/README.md b/hamster-admin-command/README.md deleted file mode 100644 index 21a88ad..0000000 --- a/hamster-admin-command/README.md +++ /dev/null @@ -1,8 +0,0 @@ -# hamster-admin-command - -| 命令 | 描述 | -|:------------|:---------| -| /feed [玩家名] | 恢复玩家的饱食度 | -| /heal [玩家名] | 治疗玩家 | -| /fly [玩家名] | 治疗玩家 | -| /head [玩家名] | 获取玩家的头颅 | diff --git a/hamster-admin-command/build.gradle b/hamster-admin-command/build.gradle deleted file mode 100644 index d19760d..0000000 --- a/hamster-admin-command/build.gradle +++ /dev/null @@ -1,14 +0,0 @@ -version = '1.0.0' -setArchivesBaseName("HamsterAdminCommand") - -dependencies { - compileOnly 'org.spigotmc:spigot-api:1.19.2-R0.1-SNAPSHOT' -} - -processResources { - inputs.property "version", project.version - filesMatching("plugin.yml") { - expand "version": project.version - } - duplicatesStrategy(DuplicatesStrategy.EXCLUDE) -} diff --git a/hamster-auto-game-rule/build.gradle b/hamster-auto-game-rule/build.gradle index fc56e46..3eef294 100644 --- a/hamster-auto-game-rule/build.gradle +++ b/hamster-auto-game-rule/build.gradle @@ -2,7 +2,8 @@ version = '1.0.0' setArchivesBaseName("HamsterAuto-GameRule") dependencies { - compileOnly 'org.spigotmc:spigot-api:1.19.2-R0.1-SNAPSHOT' + //noinspection VulnerableLibrariesLocal + compileOnly "org.spigotmc:spigot-api:${spigot_api_version}" } processResources { diff --git a/hamster-auto-log-clear/build.gradle b/hamster-auto-log-clear/build.gradle index 4373caf..b4f5315 100644 --- a/hamster-auto-log-clear/build.gradle +++ b/hamster-auto-log-clear/build.gradle @@ -2,7 +2,8 @@ version = '1.0.0' setArchivesBaseName("HamsterAuto-LogClear") dependencies { - compileOnly 'org.spigotmc:spigot-api:1.19.2-R0.1-SNAPSHOT' + //noinspection VulnerableLibrariesLocal + compileOnly "org.spigotmc:spigot-api:${spigot_api_version}" } processResources { diff --git a/hamster-auto-restart/build.gradle b/hamster-auto-restart/build.gradle deleted file mode 100644 index 441bf52..0000000 --- a/hamster-auto-restart/build.gradle +++ /dev/null @@ -1,19 +0,0 @@ -plugins { - id 'java' -} - -group 'cn.hamster3.mc.plugin' -version 'unspecified' - -repositories { - mavenCentral() -} - -dependencies { - testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1' - testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1' -} - -test { - useJUnitPlatform() -} \ No newline at end of file diff --git a/hamster-ball-bridge/build.gradle b/hamster-ball-bridge/build.gradle index eb7df6b..42c8d52 100644 --- a/hamster-ball-bridge/build.gradle +++ b/hamster-ball-bridge/build.gradle @@ -2,8 +2,10 @@ version = '1.1.0' setArchivesBaseName("HamsterBall-Bridge") dependencies { - compileOnly 'org.spigotmc:spigot-api:1.19.2-R0.1-SNAPSHOT' - compileOnly 'net.md-5:bungeecord-api:1.19-R0.1-SNAPSHOT' + //noinspection VulnerableLibrariesLocal + compileOnly "org.spigotmc:spigot-api:${spigot_api_version}" + //noinspection VulnerableLibrariesLocal + compileOnly "net.md-5:bungeecord-api:${bungee_api_version}" compileOnly "cn.hamster3.mc.plugin.ball:common:${hamster_ball_version}" compileOnly "cn.hamster3.mc.plugin.core:bukkit:${hamster_core_version}" diff --git a/hamster-sudo/build.gradle b/hamster-sudo/build.gradle index 10d1469..f263d5a 100644 --- a/hamster-sudo/build.gradle +++ b/hamster-sudo/build.gradle @@ -2,8 +2,10 @@ version = '1.0.0' setArchivesBaseName("HamsterSudo") dependencies { - compileOnly 'org.spigotmc:spigot-api:1.12.2-R0.1-SNAPSHOT' - compileOnly 'net.md-5:bungeecord-api:1.19-R0.1-SNAPSHOT' + //noinspection VulnerableLibrariesLocal + compileOnly "org.spigotmc:spigot-api:${spigot_api_version}" + //noinspection VulnerableLibrariesLocal + compileOnly "net.md-5:bungeecord-api:${bungee_api_version}" compileOnly "cn.hamster3.mc.plugin.ball:common:${hamster_ball_version}" } diff --git a/settings.gradle b/settings.gradle index 602e6cb..a26c917 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,8 +1,9 @@ rootProject.name = 'hamster-little-plugins' + include 'hamster-sudo' include 'hamster-ball-bridge' include 'hamster-auto-game-rule' -include 'hamster-admin-command' include 'hamster-ore-remove' include 'hamster-auto-log-clear' include 'hamster-auto-restart' +include 'hamster-auto-server-info'