aboutsummaryrefslogtreecommitdiff
path: root/defaults/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'defaults/build.gradle')
-rw-r--r--defaults/build.gradle21
1 files changed, 10 insertions, 11 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'