curseforge uploaded recompiled the wrong files and everything broke

This commit is contained in:
NikkyAI 2018-02-19 20:42:12 +01:00
parent 83d7028280
commit c42f91c966
5 changed files with 94 additions and 30 deletions

View File

@ -12,6 +12,7 @@ buildscript {
plugins {
id "com.github.johnrengelman.shadow" version "1.2.4"
id 'com.matthewprenger.cursegradle' version '1.0.10'
}
apply plugin: 'net.minecraftforge.gradle.forge'
@ -106,4 +107,25 @@ reobf {
shadowJar { mappingType = 'SEARGE' }
}
tasks.reobfShadowJar.mustRunAfter shadowJar
tasks.reobfShadowJar.mustRunAfter shadowJar
curseforge {
if (project.hasProperty('CURSEFORGE_API_TOKEN') && project.hasProperty('release')) {
apiKey = CURSEFORGE_API_TOKEN
}
project {
id = '287323'
releaseType = 'beta'
if (project.hasProperty('changelog_file')) {
println("changelog = $changelog_file")
changelogType = "markdown"
changelog = file(changelog_file)
}
relations {
requiredLibrary 'shadowfacts-forgelin'
}
mainArtifact(jar) {
displayName = "MatterLink $version"
}
}
}

View File

@ -11,6 +11,7 @@ buildscript {
plugins {
id "com.github.johnrengelman.shadow" version "1.2.4"
id 'com.matthewprenger.cursegradle' version '1.0.10'
}
apply plugin: 'net.minecraftforge.gradle.forge'
@ -104,4 +105,25 @@ reobf {
shadowJar { mappingType = 'SEARGE' }
}
tasks.reobfShadowJar.mustRunAfter shadowJar
tasks.reobfShadowJar.mustRunAfter shadowJar
curseforge {
if (project.hasProperty('CURSEFORGE_API_TOKEN') && project.hasProperty('release')) {
apiKey = CURSEFORGE_API_TOKEN
}
project {
id = '287323'
releaseType = 'beta'
if (project.hasProperty('changelog_file')) {
println("changelog = $changelog_file")
changelogType = "markdown"
changelog = file(changelog_file)
}
relations {
requiredLibrary 'shadowfacts-forgelin'
}
mainArtifact(jar) {
displayName = "MatterLink $version"
}
}
}

View File

@ -11,6 +11,7 @@ buildscript {
plugins {
id "com.github.johnrengelman.shadow" version "1.2.4"
id 'com.matthewprenger.cursegradle' version '1.0.10'
}
apply plugin: 'net.minecraftforge.gradle.forge'
@ -89,4 +90,25 @@ reobf {
shadowJar { mappingType = 'SEARGE' }
}
tasks.reobfShadowJar.mustRunAfter shadowJar
tasks.reobfShadowJar.mustRunAfter shadowJar
curseforge {
if (project.hasProperty('CURSEFORGE_API_TOKEN') && project.hasProperty('release')) {
apiKey = CURSEFORGE_API_TOKEN
}
project {
id = '287323'
releaseType = 'beta'
if (project.hasProperty('changelog_file')) {
println("changelog = $changelog_file")
changelogType = "markdown"
changelog = file(changelog_file)
}
relations {
requiredLibrary 'shadowfacts-forgelin'
}
mainArtifact(jar) {
displayName = "MatterLink $version"
}
}
}

View File

@ -9,6 +9,10 @@ buildscript {
}
}
plugins {
id 'com.matthewprenger.cursegradle' version '1.0.10'
}
apply plugin: 'forge'
version = project.mc_version + "-" + project.mod_version
@ -84,4 +88,25 @@ jar {
exclude "META-INF", "META-INF/**"
}
}
}
curseforge {
if (project.hasProperty('CURSEFORGE_API_TOKEN') && project.hasProperty('release')) {
apiKey = CURSEFORGE_API_TOKEN
}
project {
id = '287323'
releaseType = 'beta'
if (project.hasProperty('changelog_file')) {
println("changelog = $changelog_file")
changelogType = "markdown"
changelog = file(changelog_file)
}
relations {
requiredLibrary 'shadowfacts-forgelin'
}
mainArtifact(jar) {
displayName = "MatterLink $version"
}
}
}

View File

@ -1,6 +1,5 @@
plugins {
id "org.jetbrains.kotlin.jvm" version '1.2.21'
id 'com.matthewprenger.cursegradle' version '1.0.10'
id 'idea'
}
@ -33,31 +32,5 @@ subprojects {
url = "http://maven.shadowfacts.net/"
}
}
version = mc_version + "-" + mod_version
apply plugin: 'com.matthewprenger.cursegradle'
curseforge {
if (project.hasProperty('CURSEFORGE_API_TOKEN') && project.hasProperty('release')) {
apiKey = CURSEFORGE_API_TOKEN
}
project {
id = '287323'
releaseType = 'beta'
if (project.hasProperty('changelog_file')) {
println("changelog = $changelog_file")
changelogType = "markdown"
changelog = file(changelog_file)
}
relations {
requiredLibrary 'shadowfacts-forgelin'
}
mainArtifact(jar) {
displayName = "MatterLink $version"
}
}
}
}
}