Skip to content

Commit 50fc153

Browse files
committed
feat: ability to set required dependencies in curseforge and modrinth
1 parent 833c4ae commit 50fc153

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

88
## [Unreleased]
99

10+
### Added
11+
12+
- Added ability to set required dependencies for CurseForge and Modrinth publishing.
13+
1014
## [1.0.0] - 2025-03-27
1115

1216
### Added

refinedarchitect-plugin/src/main/kotlin/BaseExtension.kt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ import org.sonarqube.gradle.SonarQubePlugin
1717
class PublishingOptions {
1818
var maven: Boolean? = false
1919
var curseForge: String? = null
20+
var curseForgeRequiredDependencies: List<String>? = null
2021
var modrinth: String? = null
22+
var modrinthRequiredDependencies: List<String>? = null
2123
}
2224

2325
open class BaseExtension(private val project: Project) {
@@ -56,19 +58,15 @@ open class BaseExtension(private val project: Project) {
5658
minecraftVersions.add(mcVersion)
5759
changelogType.set("markdown")
5860
projectId.set(it)
59-
if (!isNeoForge) {
60-
requires("fabric-api")
61-
}
61+
options.curseForgeRequiredDependencies?.forEach { requires(it) }
6262
}
6363
}
6464
options.modrinth?.let {
6565
modrinth {
6666
accessToken.set(System.getenv("MODRINTH_TOKEN"))
6767
projectId.set(it)
6868
minecraftVersions.add(mcVersion)
69-
if (!isNeoForge) {
70-
requires("fabric-api")
71-
}
69+
options.modrinthRequiredDependencies?.forEach { requires(it) }
7270
}
7371
}
7472
}

0 commit comments

Comments
 (0)