Skip to content

Commit 4fc159c

Browse files
committed
build: add Forge jar task support to ModPlatformPlugin
1 parent 1127d0f commit 4fc159c

File tree

4 files changed

+15
-8
lines changed

4 files changed

+15
-8
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,4 @@ bin/
5454

5555
/docs/
5656
/.gradle-home/
57+
/.gradle-user-home/

CHANGELOG.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ExtraSounds Next - Changelog
22

3-
## [1.5.0]
3+
## [1.5.0 - 1.5.2]
44

55
**New Features**
66
- Added sound support for popular mods:
@@ -15,12 +15,12 @@
1515
**Technical Changes**
1616
- Migrated to Stonecutter architecture for better multi-version support
1717

18-
## [1.5.1]
19-
2018
**Fixes**
2119
- Sound switches not working properly
22-
23-
## [1.5.2]
24-
2520
**Chores**
2621
- Correct mixin refmap configuration
22+
23+
## [1.5.3]
24+
25+
**Fixes**
26+
- Fixed Forge jar used development version instead of release version

build-logic/src/main/kotlin/ModPlatformPlugin.kt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,13 @@ abstract class ModPlatformPlugin @Inject constructor() : Plugin<Project> {
8787

8888
val extension = extensions.create("platform", ModPlatformExtension::class.java).apply {
8989
loader.convention(inferredLoader)
90-
jarTask.convention(if (inferredLoaderIsFabric) "remapJar" else "jar")
90+
jarTask.convention(
91+
when (inferredLoader) {
92+
"fabric" -> "remapJar"
93+
"forge" -> "reobfJar"
94+
else -> "jar"
95+
}
96+
)
9197
sourcesJarTask.convention(if (inferredLoaderIsFabric) "remapSourcesJar" else "sourcesJar")
9298
}
9399

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ org.gradle.configuration-cache=false
55
mod.id=extrasounds
66
mod.name=ExtraSounds Next
77
mod.group=dev.arbor
8-
mod.version=1.5.2
8+
mod.version=1.5.3
99
mod.channel_tag=
1010
mod.authors=Arborsm, stashymane
1111
mod.contributors=

0 commit comments

Comments
 (0)