Skip to content

Commit

Permalink
Bump CurseForgeGradle, and stop declaring it as not compatible with t…
Browse files Browse the repository at this point in the history
…he configuration cache
  • Loading branch information
pupnewfster committed Aug 23, 2024
1 parent caae13f commit 9d63a28
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import java.util.function.Consumer

plugins {
id('org.ajoberstar.grgit.service')//Version declared in buildSrc
id('net.darkhax.curseforgegradle') version('1.1.24')
id('net.darkhax.curseforgegradle') version('1.1.25')
id('com.modrinth.minotaur') version('2.8.7')
id('java')
id('eclipse')
Expand Down Expand Up @@ -606,18 +606,15 @@ if (System.getenv('CURSEFORGE_KEY') != null || project.hasProperty('curseforgeKe
dependsOn(outputChangelog)
setGroup('publishing')
setDescription('Upload Mekanism to CurseForge')
notCompatibleWithConfigurationCache('Not yet compatible')//TODO: Remove when possible

def changelog = outputChangelog.flatMap(c -> c.outputFile)
inputs.file(changelog)
inputs.property('release_type', release_type)
inputs.property('java_version', java_version)
inputs.property('minecraft_version', minecraft_version)

//debugMode.set(true)
disableVersionDetection()
apiToken = System.getenv('CURSEFORGE_KEY') ?: project.findProperty('curseforgeKey')
//apiToken.set(project.providers.environmentVariable('CURSEFORGE_KEY').orElse(project.providers.gradleProperty('curseforgeKey')))

//Main Mekanism Project
def mainCfUpload = task.upload(268560, jar) { main ->
Expand Down Expand Up @@ -664,9 +661,6 @@ void setGenericCurseArtifactData(UploadArtifact artifact, Provider<RegularFile>
artifact.changelog = changelog
artifact.changelogType = 'markdown'
artifact.releaseType = release_type
//artifact.changelog.set(changelog.map(file -> file.asFile.text))
//artifact.changelogType.set('markdown')
//artifact.releaseType.set(release_type)
artifact.addModLoader('NeoForge')
artifact.addJavaVersion("Java ${java_version}")
artifact.addGameVersion(minecraft_version)
Expand Down

0 comments on commit 9d63a28

Please sign in to comment.