build: 优化构建脚本
This commit is contained in:
@@ -20,6 +20,6 @@ tasks {
|
|||||||
archiveBaseName = "HamsterBall-Bukkit"
|
archiveBaseName = "HamsterBall-Bukkit"
|
||||||
}
|
}
|
||||||
shadowJar {
|
shadowJar {
|
||||||
destinationDirectory = rootProject.buildDir
|
destinationDirectory = rootProject.layout.buildDirectory
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -18,6 +18,6 @@ tasks {
|
|||||||
archiveBaseName = "HamsterBall-BungeeCord"
|
archiveBaseName = "HamsterBall-BungeeCord"
|
||||||
}
|
}
|
||||||
shadowJar {
|
shadowJar {
|
||||||
destinationDirectory = rootProject.buildDir
|
destinationDirectory = rootProject.layout.buildDirectory
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user