From 441284a24bd3af732954394b3b6afa73554764de Mon Sep 17 00:00:00 2001 From: SHsuperCM Date: Tue, 20 Jun 2023 19:02:14 +0300 Subject: Fixed sources jar not being built --- build.gradle | 10 ++++------ defaults/build.gradle | 10 ++++------ settings.gradle | 2 ++ 3 files changed, 10 insertions(+), 12 deletions(-) diff --git a/build.gradle b/build.gradle index 1db46e5..49d84f0 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,5 @@ -plugins { - id 'fabric-loom' version '1.2-SNAPSHOT' - id 'io.shcm.shsupercm.fabric.fletchingtable' version '1.6' -} +plugins.apply 'fabric-loom' +plugins.apply 'io.shcm.shsupercm.fabric.fletchingtable' version = "${property('mod.version')}+${stonecutter.current().version()}" group = 'shcm.shsupercm.fabric.citresewn' @@ -37,7 +35,7 @@ loom { } java { - //withSourcesJar() + withSourcesJar() sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 @@ -67,7 +65,7 @@ if (stonecutter.current().isActiveVersion()) { changelog = java.nio.file.Files.readString(rootProject.file("Changelog.md").toPath()) versionNumber = version versionName = "v" + version - //additionalFiles = [sourcesJar.outputs.getFiles().singleFile] + additionalFiles = [sourcesJar.outputs.getFiles().singleFile] gameVersions = Arrays.asList(property('mod.target-mc-publish').split(",")) } diff --git a/defaults/build.gradle b/defaults/build.gradle index 1619154..0d080e0 100644 --- a/defaults/build.gradle +++ b/defaults/build.gradle @@ -1,7 +1,5 @@ -plugins { - id 'fabric-loom' version '1.2-SNAPSHOT' - id 'io.shcm.shsupercm.fabric.fletchingtable' version '1.6' -} +plugins.apply 'fabric-loom' +plugins.apply 'io.shcm.shsupercm.fabric.fletchingtable' version = "${property('mod.version')}+${stonecutter.current().version()}" group = 'shcm.shsupercm.fabric.citresewn.defaults' @@ -37,7 +35,7 @@ loom { } java { - //withSourcesJar() + withSourcesJar() sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 @@ -65,7 +63,7 @@ if (stonecutter.current().isActiveVersion()) { uploadFile = remapJar versionNumber = version versionName = "v" + version - //additionalFiles = [sourcesJar.outputs.getFiles().singleFile] + additionalFiles = [sourcesJar.outputs.getFiles().singleFile] gameVersions = Arrays.asList(property('mod.target-mc-publish').split(",")) } diff --git a/settings.gradle b/settings.gradle index 7a55f99..36513d1 100644 --- a/settings.gradle +++ b/settings.gradle @@ -11,6 +11,8 @@ pluginManagement { plugins { id 'io.shcm.shsupercm.fabric.stonecutter' version '1.1' + id 'fabric-loom' version '1.2-SNAPSHOT' apply false + id 'io.shcm.shsupercm.fabric.fletchingtable' version '1.6' apply false id 'com.modrinth.minotaur' version '2.+' apply false id 'com.matthewprenger.cursegradle' version '1.4.0' apply false } -- cgit