aboutsummaryrefslogtreecommitdiff
path: root/defaults
diff options
context:
space:
mode:
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