Skip to content

Commit

Permalink
chore: Release for snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
null2264 committed Feb 25, 2024
1 parent 16e5b05 commit 438195d
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,15 @@ def mcReleaseVersions = [
11902: ["1.19", "1.19.1", "1.19.2"],
12001: ["1.20", "1.20.1"],
12002: ["1.20.2", "1.20.3", "1.20.4"],
12005: ["1.20.5"],
12005: ["1.20.5"], // TODO: Still in snapshot
][mcVersion]

def cfSnapshots = [
12005: ["1.20.5-Snapshot"],
][mcVersion]

def mrSnapshots = [
12005: ["24w07a"],
][mcVersion]

publishMods {
Expand Down Expand Up @@ -330,7 +338,13 @@ publishMods {
accessToken = cfToken
projectId = project.curseforge_project

for (final def mcVer in mcReleaseVersions) {
if (cfSnapshots != null) {
for (final def mcVer in mcReleaseVersions) {
minecraftVersions.add(mcVer)
}
}

for (final def mcVer in cfSnapshots) {
minecraftVersions.add(mcVer)
}

Expand All @@ -346,7 +360,13 @@ publishMods {
accessToken = mrToken
projectId = project.modrinth_project

for (final def mcVer in mcReleaseVersions) {
if (mrSnapshots != null) {
for (final def mcVer in mcReleaseVersions) {
minecraftVersions.add(mcVer)
}
}

for (final def mcVer in mrSnapshots) {
minecraftVersions.add(mcVer)
}
}
Expand Down

0 comments on commit 438195d

Please sign in to comment.