mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-10 01:10:30 +00:00
parent
6478fca7a2
commit
cb8e06af2a
@ -32,7 +32,7 @@ val publishCurseForge by tasks.registering(TaskPublishCurseForge::class) {
|
|||||||
apiToken = findProperty("curseForgeApiKey") ?: ""
|
apiToken = findProperty("curseForgeApiKey") ?: ""
|
||||||
enabled = apiToken != ""
|
enabled = apiToken != ""
|
||||||
|
|
||||||
val mainFile = upload("282001", modPublishing.output.get().archiveFile)
|
val mainFile = upload("282001", modPublishing.output)
|
||||||
mainFile.changelog =
|
mainFile.changelog =
|
||||||
"Release notes can be found on the [GitHub repository](https://github.com/cc-tweaked/CC-Tweaked/releases/tag/v$mcVersion-$modVersion)."
|
"Release notes can be found on the [GitHub repository](https://github.com/cc-tweaked/CC-Tweaked/releases/tag/v$mcVersion-$modVersion)."
|
||||||
mainFile.changelogType = "markdown"
|
mainFile.changelogType = "markdown"
|
||||||
|
@ -246,6 +246,12 @@ modPublishing {
|
|||||||
output.set(tasks.jarJar)
|
output.set(tasks.jarJar)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Make sure configureReobfTaskForReobfJarJar runs after compilation
|
||||||
|
// see - https://github.com/SpongePowered/MixinGradle/pull/51
|
||||||
|
tasks.configureEach {
|
||||||
|
if (name == "configureReobfTaskForReobfJarJar") mustRunAfter(tasks.jarJar)
|
||||||
|
}
|
||||||
|
|
||||||
// Don't publish the slim jar
|
// Don't publish the slim jar
|
||||||
for (cfg in listOf(configurations.apiElements, configurations.runtimeElements)) {
|
for (cfg in listOf(configurations.apiElements, configurations.runtimeElements)) {
|
||||||
cfg.configure { artifacts.removeIf { it.classifier == "slim" } }
|
cfg.configure { artifacts.removeIf { it.classifier == "slim" } }
|
||||||
|
Loading…
Reference in New Issue
Block a user