build: 更新构建脚本

This commit is contained in:
2022-10-28 01:17:49 +08:00
parent 940e27e6b9
commit b0ae229a63
3 changed files with 5 additions and 2 deletions

3
gradle.properties Normal file
View File

@@ -0,0 +1,3 @@
# Done to increase the memory available to gradle.
org.gradle.jvmargs=-Xmx2G
hamster_core_version=1.0.0

View File

@@ -9,7 +9,7 @@ dependencies {
}
compileOnly 'net.md-5:bungeecord-api:1.17-R0.1-SNAPSHOT'
compileOnly "cn.hamster3.mc.plugin:hamster-core-bungeecord:1.0.0"
compileOnly "cn.hamster3.mc.plugin:hamster-core-bungeecord:${hamster_core_version}"
}
processResources {

View File

@@ -8,7 +8,7 @@ dependencies {
// https://mvnrepository.com/artifact/io.netty/netty-all
compileOnly 'io.netty:netty-all:4.1.84.Final'
compileOnly "cn.hamster3.mc.plugin:hamster-core-common:1.0.0"
compileOnly "cn.hamster3.mc.plugin:hamster-core-common:${hamster_core_version}"
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.0'