From 2210df552d47c00f755d71bfbef5777cf167ed7f Mon Sep 17 00:00:00 2001 From: Aram Date: Fri, 30 Aug 2024 18:31:14 +0200 Subject: [PATCH] Trying to get the workflow to work (#23) --- Forge/build.gradle | 41 ----------------------------------------- NeoForge/build.gradle | 28 ---------------------------- 2 files changed, 69 deletions(-) diff --git a/Forge/build.gradle b/Forge/build.gradle index f03b2cf6..cecdadaf 100644 --- a/Forge/build.gradle +++ b/Forge/build.gradle @@ -3,8 +3,6 @@ plugins { id 'idea' id 'maven-publish' id 'net.minecraftforge.gradle' version '[6.0.16,6.2)' - id 'com.modrinth.minotaur' version '2.8.3' - id 'net.darkhax.curseforgegradle' version '1.1.15' id 'org.spongepowered.mixin' version '0.7.+' } @@ -115,45 +113,6 @@ tasks.named('jar', Jar).configure { finalizedBy 'reobfJar' } -publishing { - publications { - create('mavenJava', MavenPublication) { - from components.java - groupId = "software.bluelib.forge" - artifactId = "bluelib" - version = "1.0.0" - } - } - repositories { - mavenLocal() // Add this to publish to local Maven repository - } -} - -// Add Modrinth publishing configuration -modrinth { - token = System.getenv("modrinthKey") ?: "Invalid/No API Token Found" - projectId = '8BmcQJ2H' - versionNumber = mod_version - versionName = "Forge ${minecraft_version}" - uploadFile = tasks.jar - changelog = rootProject.file("changelog.txt").text - gameVersions = [minecraft_version] - loaders = ['forge'] -} - - -task publishToCurseForge(type: net.darkhax.curseforgegradle.TaskPublishCurseForge) { - group = "publishing" - apiToken = System.getenv("curseforge.apitoken") ?: "Invalid/No API Token Found" - - def mainFile = upload(388172, tasks.jar) - mainFile.releaseType = "release" - mainFile.addModLoader("Forge") - mainFile.addGameVersion(minecraft_version) - mainFile.addJavaVersion("Java 17") - mainFile.changelog = rootProject.file("changelog.txt").text -} - tasks.withType(JavaCompile).configureEach { options.encoding = 'UTF-8' } diff --git a/NeoForge/build.gradle b/NeoForge/build.gradle index d20e54b4..9277256f 100644 --- a/NeoForge/build.gradle +++ b/NeoForge/build.gradle @@ -4,8 +4,6 @@ id 'idea' id 'maven-publish' id 'net.neoforged.gradle.userdev' version '7.0.97' - id 'com.modrinth.minotaur' version '2.8.3' - id 'net.darkhax.curseforgegradle' version '1.1.15' } version = mod_version @@ -104,32 +102,6 @@ tasks.withType(ProcessResources).configureEach { } } -modrinth { - token = System.getenv("modrinthKey") ?: "Invalid/No API Token Found" - projectId = '8BmcQJ2H' - versionNumber = mod_version - versionName = "NeoForge ${minecraft_version}" - uploadFile = tasks.jarJar - changelog = rootProject.file("changelog.txt").text - gameVersions = [minecraft_version] - loaders = ['neoforge'] - //https://github.com/modrinth/minotaur#available-properties -} - -task publishToCurseForge(type: net.darkhax.curseforgegradle.TaskPublishCurseForge) { - group = "publishing" - apiToken = System.getenv("curseforge.apitoken") ?: "Invalid/No API Token Found" - - def mainFile = upload(388172, tasks.jarJar) - mainFile.releaseType = "release" - mainFile.addModLoader("NeoForge") - mainFile.addGameVersion(minecraft_version) - mainFile.addJavaVersion("Java 17") - mainFile.changelog = rootProject.file("changelog.txt").text - - //https://github.com/Darkhax/CurseForgeGradle#available-properties -} - tasks.withType(JavaCompile).configureEach { options.encoding = 'UTF-8' }