File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
refinedarchitect-plugin/src/main/kotlin Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -17,7 +17,9 @@ import org.sonarqube.gradle.SonarQubePlugin
1717class 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
2325open 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 }
You can’t perform that action at this time.
0 commit comments