build: 优化构建脚本

This commit is contained in:
2025-03-23 00:46:54 +08:00
parent 00dbcba628
commit 95c0a23857
3 changed files with 10 additions and 4 deletions

View File

@@ -20,6 +20,6 @@ tasks {
archiveBaseName = "HamsterBall-Bukkit" archiveBaseName = "HamsterBall-Bukkit"
} }
shadowJar { shadowJar {
destinationDirectory = rootProject.buildDir destinationDirectory = rootProject.layout.buildDirectory
} }
} }

View File

@@ -18,6 +18,6 @@ tasks {
archiveBaseName = "HamsterBall-BungeeCord" archiveBaseName = "HamsterBall-BungeeCord"
} }
shadowJar { shadowJar {
destinationDirectory = rootProject.buildDir destinationDirectory = rootProject.layout.buildDirectory
} }
} }

View File

@@ -1,7 +1,13 @@
buildscript {
repositories {
maven("https://maven.airgame.net/maven-public/")
}
}
plugins { plugins {
id("java-library") id("java-library")
id("maven-publish") id("maven-publish")
id("com.github.johnrengelman.shadow") version "8+" id("com.gradleup.shadow") version "8.3.6"
} }
group = "cn.hamster3.mc.plugin" group = "cn.hamster3.mc.plugin"
@@ -12,7 +18,7 @@ subprojects {
apply { apply {
plugin("java-library") plugin("java-library")
plugin("maven-publish") plugin("maven-publish")
plugin("com.github.johnrengelman.shadow") plugin("com.gradleup.shadow")
} }
group = rootProject.group group = rootProject.group