Automatically mark MidnightLib as dependency

This commit is contained in:
Martin Prokoph
2024-02-22 15:14:44 +01:00
parent 849e089ff2
commit 3e24b1ac0a
2 changed files with 14 additions and 0 deletions

View File

@@ -86,6 +86,10 @@ unifiedPublishing {
curseforge = "fabric-api"
modrinth = "fabric-api"
}
includes {
curseforge = "midnightlib"
modrinth = "midnightlib"
}
}
var CURSEFORGE_TOKEN = project.findProperty("CURSEFORGE_TOKEN") ?: System.getenv("CURSEFORGE_TOKEN")

View File

@@ -75,14 +75,24 @@ unifiedPublishing {
changelog = releaseChangelog()
gameVersions = []
gameLoaders = ["neoforge"]
mainPublication remapJar
relations {
depends {
curseforge = "midnightlib"
modrinth = "midnightlib"
}
includes {}
}
var CURSEFORGE_TOKEN = project.findProperty("CURSEFORGE_TOKEN") ?: System.getenv("CURSEFORGE_TOKEN")
if (CURSEFORGE_TOKEN != null) {
curseforge {
token = CURSEFORGE_TOKEN
id = rootProject.curseforge_id
gameVersions.addAll "Java 17", project.minecraft_version
releaseType = "alpha"
}
}