Skip to content

Commit

Permalink
gradle is weird
Browse files Browse the repository at this point in the history
  • Loading branch information
AnAwesomGuy committed Oct 1, 2024
1 parent f093502 commit 1d65ff8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ plugins {

architectury.minecraft = minecraft_version

version = (mod_version + "+" + minecraft_version)

Map<String, String> modProperties() {
[
version: mod_version, mod_id: mod_id, description: project.properties.description,
Expand All @@ -17,8 +15,8 @@ Map<String, String> modProperties() {
]
}

import groovy.json.JsonOutput
import groovy.json.JsonSlurper
import groovy.json.JsonOutput

subprojects {
apply plugin: "dev.architectury.loom"
Expand Down Expand Up @@ -104,15 +102,17 @@ publishMods {
def fabric = publishOptions {
file = fabricJar
additionalFiles.from fabricSources
displayName = "[Fabric 1.20.5+] $display_name $version"
version = project.version + "-fabric"
displayName = "[Fabric 1.20.5+] $display_name $project.version"
modLoaders.addAll "fabric", "quilt"
}

def neoForge = publishOptions {
file = neoForgeJar
additionalFiles.from neoForgeSources
displayName = "[Neo(Forge) 1.20.5+] $display_name $version"
modLoaders.add "forge"
version = project.version + "-fabric"
displayName = "[(Neo)Forge 1.20.5+] $display_name $mod_version+1.20.4"
modLoaders.add "neoforge"
}

def modrinthOptions = modrinthOptions {
Expand Down Expand Up @@ -168,6 +168,6 @@ publishMods {
dryRun = !accessToken.present
repository = github
commitish = "20.5+"
tagName = version
tagName = project.version
}
}
2 changes: 1 addition & 1 deletion neoforge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ configurations {
canBeResolved = true
canBeConsumed = false
}
shadowCommon { // don't use shadow from the shadow plugin since it *excludes* files.
shadowCommon {
canBeResolved = true
canBeConsumed = false
}
Expand Down

0 comments on commit 1d65ff8

Please sign in to comment.