Auto append latest version
This commit is contained in:
parent
73a9c1f2fe
commit
f63f0ef5fc
1 changed files with 8 additions and 3 deletions
11
build.gradle
11
build.gradle
|
@ -123,14 +123,19 @@ curseforge {
|
||||||
changelogType = 'markdown'
|
changelogType = 'markdown'
|
||||||
changelog = changes
|
changelog = changes
|
||||||
releaseType = project.release_channel
|
releaseType = project.release_channel
|
||||||
for (item in slurper.parseText(project.modrinth_versions)) {
|
def versions = slurper.parseText(project.modrinth_versions);
|
||||||
addGameVersion item
|
def latestVersion = ''
|
||||||
|
for (v in versions) {
|
||||||
|
addGameVersion v
|
||||||
|
latestVersion = "[$v]"
|
||||||
}
|
}
|
||||||
|
addGameVersion 'Fabric'
|
||||||
|
addGameVersion 'Java 17'
|
||||||
relations {
|
relations {
|
||||||
requiredDependency 'fabric-api'
|
requiredDependency 'fabric-api'
|
||||||
}
|
}
|
||||||
mainArtifact(remapJar) {
|
mainArtifact(remapJar) {
|
||||||
displayName = "$project.archives_base_name-$project.version [1.19.2]"
|
displayName = "$project.archives_base_name-$project.version $latestVersion"
|
||||||
}
|
}
|
||||||
afterEvaluate {
|
afterEvaluate {
|
||||||
mainArtifact(remapJar.outputs)
|
mainArtifact(remapJar.outputs)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue