aboutsummaryrefslogtreecommitdiff
path: root/defaults
diff options
context:
space:
mode:
authorSHsuperCM <shsupercm@gmail.com>2022-08-26 15:52:06 +0300
committerSHsuperCM <shsupercm@gmail.com>2022-08-26 15:52:06 +0300
commit65db3830e98c5d00186330e2f89345b11a3296b7 (patch)
treeaf04570269c19600c8ce1918216dc52d990f0838 /defaults
parent12e9d7e67941f119cc1d6ac85c5923fecfcae012 (diff)
downloadCITResewn-65db3830e98c5d00186330e2f89345b11a3296b7.tar.gz
CITResewn-65db3830e98c5d00186330e2f89345b11a3296b7.tar.bz2
CITResewn-65db3830e98c5d00186330e2f89345b11a3296b7.zip
Made merged publish task & added defaults publish
Closes #171 Should also fix #179 in future versions
Diffstat (limited to 'defaults')
-rw-r--r--defaults/build.gradle19
1 files changed, 18 insertions, 1 deletions
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