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'