forked from Clones/Controlify
🐘 Add publishing relations
This commit is contained in:
@ -185,6 +185,12 @@ if (modrinthId.isNotEmpty()) {
|
|||||||
loaders.set(listOf("fabric", "quilt"))
|
loaders.set(listOf("fabric", "quilt"))
|
||||||
changelog.set(changelogText)
|
changelog.set(changelogText)
|
||||||
syncBodyFrom.set(file(".github/README.md").readText())
|
syncBodyFrom.set(file(".github/README.md").readText())
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
required.project("yacl")
|
||||||
|
required.project("fabric-api")
|
||||||
|
optional.project("modmenu")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -205,10 +211,17 @@ if (hasProperty("curseforge.token") && curseforgeId.isNotEmpty()) {
|
|||||||
|
|
||||||
changelog = changelogText
|
changelog = changelogText
|
||||||
changelogType = "markdown"
|
changelogType = "markdown"
|
||||||
|
|
||||||
|
relations(closureOf<me.hypherionmc.cursegradle.CurseRelation> {
|
||||||
|
requiredDependency("fabric-api")
|
||||||
|
requiredDependency("yacl")
|
||||||
|
optionalDependency("modmenu")
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
options(closureOf<me.hypherionmc.cursegradle.Options> {
|
options(closureOf<me.hypherionmc.cursegradle.Options> {
|
||||||
forgeGradleIntegration = false
|
forgeGradleIntegration = false
|
||||||
|
fabricIntegration = false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -221,7 +234,7 @@ githubRelease {
|
|||||||
owner(split[0])
|
owner(split[0])
|
||||||
repo(split[1])
|
repo(split[1])
|
||||||
tagName("${project.version}")
|
tagName("${project.version}")
|
||||||
targetCommitish("1.20.x/dev")
|
targetCommitish(grgit.branch.current().name)
|
||||||
body(changelogText)
|
body(changelogText)
|
||||||
releaseAssets(tasks["remapJar"].outputs.files)
|
releaseAssets(tasks["remapJar"].outputs.files)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user