Skip to content

Commit

Permalink
Fix Upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
AlphaKR93 committed Feb 26, 2024
1 parent 013fef2 commit b6561c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,11 @@ tasks {

doFirst {
val commit = layout.cache.resolve("commit.json")
download.get().download("https://api.github.com/repos/PlazmaMC/PlazmaBukkit/commits/master", commit)
download.get().download("https://api.github.com/repos/PlazmaMC/PlazmaBukkit/commits/${property("plazmaRef")}", commit)
val latestCommit = gson.fromJson<paper.libs.com.google.gson.JsonObject>(commit)["sha"].asString

val compare = layout.cache.resolve("compare.json")
download.get().download("https://api.github.com/repos/PlazmaMC/PlazmaBukkit/compare/${property("plazmaCommit")}...dev/1.20.4", compare)
download.get().download("https://api.github.com/repos/PlazmaMC/PlazmaBukkit/compare/${property("plazmaCommit")}...${property("plazmaRef")}", compare)
gson.fromJson<paper.libs.com.google.gson.JsonObject>(compare)["commits"].asJsonArray.forEach {
builder.append("PlazmaMC/PlazmaBukkit@${it.asJsonObject["sha"].asString.subSequence(0, 7)}: ${it.asJsonObject["commit"].asJsonObject["message"].asString.split("\n")[0]}\n")
}
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ org.gradle.jvmargs = -Xmx4G -Dfile.encoding=UTF-8 -Dgraal.CompilerConfiguration=

version = 1.20.4-R0.1-SNAPSHOT
mcVersion = 1.20.4
plazmaRef = dev/1.20.4

plazmaCommit = 3852ef88c46a5be0ef6ac4babe80c2b9fbb81067

0 comments on commit b6561c8

Please sign in to comment.