Skip to content

Commit

Permalink
updated build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunekaer committed Jan 15, 2024
1 parent 78039a2 commit 0d8404e
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ publishMods {
modLoaders.add("forge")
}

def neoForge = publishOptions {
file = project.provider { project(":neoforge").tasks.remapJar }.flatMap { it.archiveFile }
displayName = "[NEOFORGE][${minecraft_version}] ${project.name} ${mod_version}"
modLoaders.add("neoforge")
}

def curseForgeOptions = curseforgeOptions {
accessToken = providers.environmentVariable("CURSE_TOKEN")
projectId = "${curseforge_id}"
Expand All @@ -95,10 +101,23 @@ publishMods {
requires {
slug = "fabric-api"
}
requires {
slug = "architectury-api"
}
}

curseforge("curseforgeForge") {
from(curseForgeOptions, forgeOptions)
requires {
slug = "architectury-api"
}
}

curseforge("curseforgeNeoForge") {
from(curseForgeOptions, neoForge)
requires {
slug = "architectury-api"
}
}

if (providers.environmentVariable("MODRINTH_TOKEN").getOrNull() != null) {
Expand All @@ -107,10 +126,23 @@ publishMods {
requires {
slug = "fabric-api"
}
requires {
slug = "architectury-api"
}
}

modrinth("modrinthForge") {
from(modrinthOptions, forgeOptions)
requires {
slug = "architectury-api"
}
}

modrinth("modrinthNeoforge") {
from(modrinthOptions, neoForge)
requires {
slug = "architectury-api"
}
}
}
}

0 comments on commit 0d8404e

Please sign in to comment.