Skip to content

Commit 3b41f05

Browse files
committed
Upload correct jar for Fabric
1 parent 253ae0f commit 3b41f05

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

buildSrc/src/main/groovy/ferritecore.loader-conventions.gradle

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,13 @@ jar {
2929
}
3030
}
3131

32+
def mainArtifact = name == "Fabric" ? remapJar.archivePath : jar.archivePath
33+
3234
task signJar(description: "Sign jar") {
3335
doLast {
3436
if (project.hasProperty('keyStore')) {
35-
logger.warn("Signing " + jar.archivePath + "\n")
36-
ant.signjar(jar: jar.archivePath,
37+
logger.warn("Signing " + mainArtifact + "\n")
38+
ant.signjar(jar: mainArtifact,
3739
alias: project.storeAlias,
3840
keystore: project.keyStore,
3941
storepass: project.storePass,
@@ -99,7 +101,7 @@ def changelogFile = new File("changelog/${mod_version}.md");
99101

100102
if (changelogFile.exists()) {
101103
publishMods {
102-
file = jar.archivePath
104+
file = mainArtifact
103105
changelog = changelogFile.text
104106
type = STABLE
105107
modLoaders.add(name.toLowerCase(Locale.ROOT))

changelog/7.0.2-hotfix.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Upload correct jar in automatic release task

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ fabric_loader_version=0.15.11
2020
mod_name=FerriteCore
2121
mod_author=malte0811
2222
mod_id=ferritecore
23-
mod_version=7.0.2
23+
mod_version=7.0.2-hotfix
2424

2525
# TODO can this be made to work?
2626
#org.gradle.configuration-cache=true

0 commit comments

Comments
 (0)