From 65db3830e98c5d00186330e2f89345b11a3296b7 Mon Sep 17 00:00:00 2001 From: SHsuperCM Date: Fri, 26 Aug 2022 15:52:06 +0300 Subject: Made merged publish task & added defaults publish Closes #171 Should also fix #179 in future versions --- defaults/build.gradle | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'defaults/build.gradle') diff --git a/defaults/build.gradle b/defaults/build.gradle index 2e88283..fe1691f 100644 --- a/defaults/build.gradle +++ b/defaults/build.gradle @@ -1,13 +1,30 @@ +apply plugin: 'com.modrinth.minotaur' + archivesBaseName = "citresewn-defaults" dependencies { implementation project(path: ":", configuration: "namedElements") } +java { + withSourcesJar() +} + loom { accessWidenerPath = file("src/main/resources/citresewn-defaults.accesswidener") runConfigs.configureEach { ideConfigGenerated = true } -} \ No newline at end of file +} + +modrinth { + token = TOKEN_MODRINTH + projectId = "meHXjJBu" + uploadFile = remapJar + versionNumber = version + versionName = "v" + version + additionalFiles = [ sourcesJar.outputs.getFiles().singleFile ] + gameVersions = Arrays.asList(rootProject.publish_minecraft_versions.split(",")) +} +tasks.getByName("modrinth").mustRunAfter(rootProject.tasks.getByName("modrinth")) \ No newline at end of file -- cgit