Skip to content

Commit

Permalink
Trying to get the workflow to work (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
MeAlam1 authored Aug 30, 2024
1 parent 09ecfb7 commit 2210df5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 69 deletions.
41 changes: 0 additions & 41 deletions Forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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.+'
}

Expand Down Expand Up @@ -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'
}
Expand Down
28 changes: 0 additions & 28 deletions NeoForge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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'
}
Expand Down

0 comments on commit 2210df5

Please sign in to comment.