fix build.gradle publishing. i knew first time it wouldn't work
This commit is contained in:
parent
1d7c3898bf
commit
9baf468e05
11
build.gradle
11
build.gradle
@ -164,11 +164,14 @@ curseforge {
|
||||
|
||||
project {
|
||||
id = "${curse_id}"
|
||||
changelog = changelog(3)
|
||||
releaseType = 'release'
|
||||
"${project.curse_versions}".split(', ').each {
|
||||
addGameVersion "${it}"
|
||||
}
|
||||
mainArtifact(remapJar) {
|
||||
changelog = changelog(3)
|
||||
changelogType = "markdown"
|
||||
releaseType = 'release'
|
||||
}
|
||||
relations {
|
||||
"${project.curse_dep}".split(', ').each {
|
||||
requiredDependency "${it}"
|
||||
@ -186,7 +189,7 @@ tasks.getByName("curseforge").doLast {
|
||||
def message = new Message()
|
||||
def version = project.curse_versions.split(', ')[0]
|
||||
message.setUsername("Release")
|
||||
message.setContent("@Flan ${project.project_name} ${project.mod_version} for Minecraft ${version} has been released!")
|
||||
message.setContent("<@&852113509243682817> ${project.project_name} ${project.mod_version} for Minecraft ${version} has been released!")
|
||||
|
||||
def embed = new Embed()
|
||||
embed.addField('Get it here', "${project.findProperty('curse_page')}/files/${newFileId}", false)
|
||||
@ -209,7 +212,7 @@ tasks.getByName("curseforge").doLast {
|
||||
}
|
||||
|
||||
task buildUploadAll(group: "publishing") {
|
||||
dependsOn clean, publish, tasks.getByName("curseforge")
|
||||
dependsOn clean, build, publish, tasks.getByName("curseforge")
|
||||
build.mustRunAfter clean
|
||||
tasks.findByName("curseforge").mustRunAfter publish
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user