From 750dbc705599d02fbe79751dd8bb309b966001ee Mon Sep 17 00:00:00 2001 From: MiniDay <372403923@qq.com> Date: Sat, 29 Oct 2022 04:54:10 +0800 Subject: [PATCH] =?UTF-8?q?build:=20=E4=BC=98=E5=8C=96=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 9 +++++---- gradle.properties | 2 +- hamster-ball-bukkit/build.gradle | 2 +- hamster-ball-bungeecord/build.gradle | 3 ++- hamster-ball-common/build.gradle | 5 ++++- 5 files changed, 13 insertions(+), 8 deletions(-) diff --git a/build.gradle b/build.gradle index 071186c..c0650d9 100644 --- a/build.gradle +++ b/build.gradle @@ -27,6 +27,9 @@ subprojects { dependencies { // https://mvnrepository.com/artifact/org.jetbrains/annotations compileOnly 'org.jetbrains:annotations:23.0.0' + // https://mvnrepository.com/artifact/org.projectlombok/lombok + compileOnly 'org.projectlombok:lombok:1.18.24' + annotationProcessor 'org.projectlombok:lombok:1.18.24' } java { @@ -61,11 +64,9 @@ subprojects { publishing { publications { mavenJava(MavenPublication) { - var projectNameSplit = project.name.split('-') + def projectNameSplit = project.name.split('-') artifactId = projectNameSplit[projectNameSplit.length - 1] - artifact jar - artifact sourcesJar -// artifact javadocJar + from project.components.java } } repositories { diff --git a/gradle.properties b/gradle.properties index a5dac3f..448c7bc 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,3 @@ org.gradle.jvmargs=-Xmx2G -hamster_core_version=1.0.0 +hamster_core_version=1.0.0-SNAPSHOT diff --git a/hamster-ball-bukkit/build.gradle b/hamster-ball-bukkit/build.gradle index a081688..7b4ff10 100644 --- a/hamster-ball-bukkit/build.gradle +++ b/hamster-ball-bukkit/build.gradle @@ -9,7 +9,7 @@ dependencies { compileOnly 'org.spigotmc:spigot-api:1.12.2-R0.1-SNAPSHOT' - compileOnly "cn.hamster3.mc.plugin:hamster-core-bukkit:${hamster_core_version}" + compileOnly "cn.hamster3.mc.plugin.core:bukkit:${hamster_core_version}" } processResources { diff --git a/hamster-ball-bungeecord/build.gradle b/hamster-ball-bungeecord/build.gradle index 31ad948..ae6eea0 100644 --- a/hamster-ball-bungeecord/build.gradle +++ b/hamster-ball-bungeecord/build.gradle @@ -8,7 +8,8 @@ dependencies { } compileOnly 'net.md-5:bungeecord-api:1.19-R0.1-SNAPSHOT' - compileOnly "cn.hamster3.mc.plugin:hamster-core-bungeecord:${hamster_core_version}" + + compileOnly "cn.hamster3.mc.plugin.core:bungeecord:${hamster_core_version}" } processResources { diff --git a/hamster-ball-common/build.gradle b/hamster-ball-common/build.gradle index d6c5264..6281a90 100644 --- a/hamster-ball-common/build.gradle +++ b/hamster-ball-common/build.gradle @@ -7,7 +7,10 @@ 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:${hamster_core_version}" + compileOnly "cn.hamster3.mc.plugin.core:common:${hamster_core_version}" + + // https://mvnrepository.com/artifact/net.kyori/adventure-api + compileOnly 'net.kyori:adventure-api:4.11.0' testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.0' testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.0'