diff options
| author | Aizistral | 2026-08-18 11:19:09 +0200 |
|---|---|---|
| committer | Aizistral | 2026-08-18 11:19:09 +0200 |
| commit | a9155d171ae6659f7eda24053c33c6ffebeaa72e (patch) | |
| tree | b49c52d6fbf4ec84d3250bf450c0e824e69600a5 /build.gradle | |
| parent | b6dfadbc0744ce236f6800a320434f110c110e9c (diff) | |
Revert "Use Darkhax CurseGradle plugin"
This reverts commit b6dfadbc0744ce236f6800a320434f110c110e9c.
Diffstat (limited to 'build.gradle')
| -rw-r--r-- | build.gradle | 60 |
1 files changed, 37 insertions, 23 deletions
diff --git a/build.gradle b/build.gradle index 645c859..3d369ac 100644 --- a/build.gradle +++ b/build.gradle @@ -4,7 +4,7 @@ plugins { id 'fabric-loom' version '1.1-SNAPSHOT' id 'maven-publish' id "com.modrinth.minotaur" version "2.+" - id 'net.darkhax.curseforgegradle' version '1.+' + id "com.matthewprenger.cursegradle" version "1.+" } sourceCompatibility = JavaVersion.VERSION_17 @@ -138,30 +138,44 @@ java { // } //} -task curseforge(type: net.darkhax.curseforgegradle.TaskPublishCurseForge) { - println("[Fabric] Pushing CurseForgeGradle specifications for project ID: ${curse_id}") - disableVersionDetection() - - apiToken = findProperty('curseKey') ?: '0' - - def projectId = project.curse_id - def mainFile = upload(projectId, remapJar) - - mainFile.changelogType = 'markdown' - mainFile.changelog = rootProject.file("docs/CHANGELOG.md").text - mainFile.releaseType = "${version_type}" - - mainFile.addEnvironment("Client", "Server") +curseforge { + + project { + println("Pushing CurseGradle specifications for project ID: ${curse_id}") - mainFile.addModLoader('Quilt') - mainFile.addModLoader('Fabric') - mainFile.addJavaVersion('Java 17') - mainFile.addGameVersion('1.20') - mainFile.addGameVersion('1.20.1') + // Specified as cmd argument + apiKey = findProperty('curseKey') ?: 'none' + + id = "${curse_id}" + releaseType = "${version_type}" + changelogType = 'markdown' + changelog = file('docs/CHANGELOG.md') + mainArtifact(remapJar) + + addGameVersion "1.20.1" + addGameVersion "1.20" + addGameVersion 'Quilt' + addGameVersion 'Fabric' + addGameVersion 'Java 17' + + relations { + embeddedLibrary 'fabric-api' + optionalDependency 'modmenu' + optionalDependency 'cloth-config' + } + + afterEvaluate { + uploadTask.dependsOn(remapJar) + } + + //debug = true + //addArtifact(sourcesJar) + //addArtifact(apiJar) + } - mainFile.addEmbedded('fabric-api') - mainFile.addOptional('modmenu') - mainFile.addOptional('cloth-config') + options { + forgeGradleIntegration = false + } } modrinth { |
