From b8a2828582aeada0deda2de283e2528014b0d50e Mon Sep 17 00:00:00 2001 From: Juuz <6596629+Juuxel@users.noreply.github.com> Date: Sat, 18 Feb 2023 18:22:21 +0200 Subject: [PATCH] Tweak publications to match upstream more closely - Removes one duplicate publication (plugin), it already exists in the gradle plugin development plugin. - Removed some minor differences in the snapshot publications to match upstream to reduce merge conflicts. --- build.gradle | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/build.gradle b/build.gradle index 5a7ce4f6..f098843d 100644 --- a/build.gradle +++ b/build.gradle @@ -239,17 +239,10 @@ import org.w3c.dom.Node publishing { publications { - plugin(MavenPublication) { publication -> - groupId project.group - artifactId project.archivesBaseName - version project.version - - from components.java - } - if (isSnapshot) return - mavenSnapshot(MavenPublication) { publication -> + // Also publish a snapshot so people can use the latest version if they wish + snapshot(MavenPublication) { publication -> groupId project.group artifactId project.archivesBaseName version baseVersion + '-SNAPSHOT' @@ -257,7 +250,8 @@ publishing { from components.java } - pluginSnapshot(MavenPublication) { + // Manually crate the plugin marker for snapshot versions + snapshotPlugin(MavenPublication) { groupId 'dev.architectury.loom' artifactId 'dev.architectury.loom.gradle.plugin' version baseVersion + '-SNAPSHOT'