aboutsummaryrefslogtreecommitdiff
path: root/defaults
diff options
context:
space:
mode:
authorSHsuperCM <shsupercm@gmail.com>2023-06-21 09:53:19 +0300
committerSHsuperCM <shsupercm@gmail.com>2023-06-21 09:53:19 +0300
commitdaa0381b50753f8db9aff2e353872c8d673947b8 (patch)
tree666fb0af1beb1c89699011a27f544f2cca5550cb /defaults
parent441284a24bd3af732954394b3b6afa73554764de (diff)
downloadCITResewn-daa0381b50753f8db9aff2e353872c8d673947b8.tar.gz
CITResewn-daa0381b50753f8db9aff2e353872c8d673947b8.tar.bz2
CITResewn-daa0381b50753f8db9aff2e353872c8d673947b8.zip
Buildscript cleanup
Diffstat (limited to 'defaults')
-rw-r--r--defaults/build.gradle21
-rw-r--r--defaults/gradle.properties1
-rw-r--r--defaults/versions/1.20.1/gradle.properties2
3 files changed, 12 insertions, 12 deletions
diff --git a/defaults/build.gradle b/defaults/build.gradle
index 0d080e0..c29ecff 100644
--- a/defaults/build.gradle
+++ b/defaults/build.gradle
@@ -13,13 +13,13 @@ dependencies {
minecraft "com.mojang:minecraft:${stonecutter.current().version()}"
mappings "net.fabricmc:yarn:${property('deps.yarn')}:v2"
- modImplementation "net.fabricmc:fabric-loader:${property('deps.fabric-loader')}"
- modImplementation "net.fabricmc.fabric-api:fabric-api:${property('deps.fabric-api')}"
+ modCompileOnly "net.fabricmc:fabric-loader:${property('deps.fabric-loader')}"
+ modCompileOnly "net.fabricmc.fabric-api:fabric-api:${property('deps.fabric-api')}"
- modImplementation "com.terraformersmc:modmenu:${property('deps.modmenu')}"
- modImplementation "me.shedaniel.cloth:cloth-config-fabric:${property('deps.cloth-config')}"
+ modCompileOnly "com.terraformersmc:modmenu:${property('deps.modmenu')}"
+ modCompileOnly "me.shedaniel.cloth:cloth-config-fabric:${property('deps.cloth-config')}"
- implementation project(path: ":${stonecutter.current().version()}", configuration: "namedElements")
+ compileOnly project(path: ":${stonecutter.current().version()}", configuration: "namedElements")
}
fletchingTable {
@@ -29,9 +29,8 @@ fletchingTable {
loom {
accessWidenerPath = file("../../src/main/resources/citresewn-defaults.accesswidener")
- runConfigs.configureEach {
- ideConfigGenerated = true
- }
+ runConfigs.client.ideConfigGenerated = false
+ runConfigs.server.ideConfigGenerated = false
}
java {
@@ -59,15 +58,15 @@ if (stonecutter.current().isActiveVersion()) {
modrinth {
token = TOKEN_MODRINTH
- projectId = 'meHXjJBu'
+ projectId = property('publish.modrinth.defaults.id')
uploadFile = remapJar
versionNumber = version
versionName = "v" + version
additionalFiles = [sourcesJar.outputs.getFiles().singleFile]
- gameVersions = Arrays.asList(property('mod.target-mc-publish').split(","))
+ gameVersions = Arrays.asList(property('publish.target-mc').split(","))
}
- rootProject.tasks.named('publish') {
+ rootProject.tasks.named('publishActive') {
Task remapJarTask = tasks.getByName 'remapJar'
Task modrinthTask = tasks.getByName 'modrinth'
diff --git a/defaults/gradle.properties b/defaults/gradle.properties
new file mode 100644
index 0000000..4d6c940
--- /dev/null
+++ b/defaults/gradle.properties
@@ -0,0 +1 @@
+publish.modrinth.defaults.id=meHXjJBu \ No newline at end of file
diff --git a/defaults/versions/1.20.1/gradle.properties b/defaults/versions/1.20.1/gradle.properties
index da06dfe..2bf73dc 100644
--- a/defaults/versions/1.20.1/gradle.properties
+++ b/defaults/versions/1.20.1/gradle.properties
@@ -1,5 +1,5 @@
mod.target-mc=~1.20
-mod.target-mc-publish=1.20,1.20.1
+publish.target-mc=1.20,1.20.1
deps.yarn=1.20.1+build.2
deps.fabric-api=0.83.1+1.20.1
deps.modmenu=7.1.0