From 82249763936f403ae90a06ef8c66297ceabd3dd5 Mon Sep 17 00:00:00 2001 From: Luke Chambers Date: Mon, 3 Oct 2022 10:37:22 -0400 Subject: [PATCH] Publish entire java component and common (#3331) --- .../src/main/kotlin/geyser.publish-conventions.gradle.kts | 5 ++--- common/build.gradle.kts | 6 +++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/build-logic/src/main/kotlin/geyser.publish-conventions.gradle.kts b/build-logic/src/main/kotlin/geyser.publish-conventions.gradle.kts index 68ab59337..7525f97fa 100644 --- a/build-logic/src/main/kotlin/geyser.publish-conventions.gradle.kts +++ b/build-logic/src/main/kotlin/geyser.publish-conventions.gradle.kts @@ -11,8 +11,7 @@ publishing { artifactId = project.name version = project.version as String - artifact(tasks["shadowJar"]) - artifact(tasks["sourcesJar"]) + from(components["java"]) } } } @@ -31,4 +30,4 @@ artifactory { setPublishIvy(false) } } -} \ No newline at end of file +} diff --git a/common/build.gradle.kts b/common/build.gradle.kts index 44f97b9fa..db3fe3a77 100644 --- a/common/build.gradle.kts +++ b/common/build.gradle.kts @@ -1,4 +1,8 @@ +plugins { + id("geyser.publish-conventions") +} + dependencies { api(libs.cumulus) api(libs.gson) -} \ No newline at end of file +}