Skip to content
Draft

V5 #22

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
1ad04bb
Send logs to admins in chat
OffsetMonkey538 Jan 25, 2025
f90eaa1
Restructure config
OffsetMonkey538 Jun 14, 2025
ef8a163
Restructure folders
OffsetMonkey538 Jun 14, 2025
da9ab1b
Add method for getting diff between a commit hash and the head.
OffsetMonkey538 Jun 14, 2025
e450e66
Refactor resourcepack handling
OffsetMonkey538 Jun 14, 2025
239eef8
Fix crash when there's no previous commit.
OffsetMonkey538 Jun 15, 2025
1d0ea71
Use resource pack root dir as 'packs' folder
OffsetMonkey538 Jun 15, 2025
95640aa
Exclude hidden files from pack generation
OffsetMonkey538 Jun 15, 2025
ddd7619
Update gh workflows
OffsetMonkey538 Jun 15, 2025
deb6542
Cleanup
OffsetMonkey538 Jun 15, 2025
02af56a
They.... they actually work?
OffsetMonkey538 Jun 16, 2025
e2715f2
Cleanup
OffsetMonkey538 Jun 16, 2025
3b4772b
Automatically reload datapack list after datapack update
OffsetMonkey538 Jun 16, 2025
389bf9d
Only request-pack command needs to be executed by player. Update trig…
OffsetMonkey538 Jun 19, 2025
004d441
Fix webhooks always sending using resource pack success url
OffsetMonkey538 Jun 19, 2025
205c2bf
Fix crash on older minecraft versions
OffsetMonkey538 Jul 4, 2025
1b40c65
Allow specifying protocol for public ip
OffsetMonkey538 Jul 9, 2025
8f5b3a1
Merge pull request #16 from OffsetMods538/10-report-errors-to-admins-…
OffsetMonkey538 Jul 22, 2025
84d1416
Merge remote-tracking branch 'origin/v5' into 19-add-support-for-mana…
OffsetMonkey538 Jul 22, 2025
e69ce9c
Cleanup
OffsetMonkey538 Jul 22, 2025
eabf6d3
Merge pull request #20 from OffsetMods538/19-add-support-for-managing…
OffsetMonkey538 Jul 22, 2025
c469dde
Really? I just... delete a bunch of code and all of a sudden the mod …
OffsetMonkey538 Jul 22, 2025
26141e1
Fix crash introduced with #16
OffsetMonkey538 Jul 22, 2025
fd18edd
Update to monkeylib538 v3
OffsetMonkey538 Jul 26, 2025
40ba893
Update monke to 992e97c
OffsetMonkey538 Aug 3, 2025
588c8fe
Update monke to eb3e2e1
OffsetMonkey538 Aug 4, 2025
c640319
Update monke to 30682cc
OffsetMonkey538 Aug 6, 2025
71c06a4
Unused import
OffsetMonkey538 Aug 6, 2025
a07de90
Use gray text for info logging in chat from trigger update command
OffsetMonkey538 Aug 6, 2025
a3071e5
Update monke to 7adde5c
OffsetMonkey538 Aug 6, 2025
0852c88
Update monki to 6345c7b
OffsetMonkey538 Aug 10, 2025
df5ef9e
fix config fixing
OffsetMonkey538 Aug 30, 2025
62fff02
fix update message test command only sending resource pack test, even…
OffsetMonkey538 Sep 4, 2025
f5b888d
fix fixing again
OffsetMonkey538 Sep 4, 2025
6bb77b1
correct handling of admin message queue
OffsetMonkey538 Sep 4, 2025
aa88371
typo
OffsetMonkey538 Sep 4, 2025
15e6fb5
cleanup
OffsetMonkey538 Sep 4, 2025
57d723a
remove unused logLevel parameter for createLogToAdminListener
OffsetMonkey538 Sep 6, 2025
a7934be
neo? :3
OffsetMonkey538 Oct 7, 2025
6aecd24
depend on newer monkeylib and meshlib
OffsetMonkey538 Oct 7, 2025
d5f38be
depend on newer monkeylib and meshlib
OffsetMonkey538 Oct 7, 2025
be184b1
depend on newer monkeylib and meshlib
OffsetMonkey538 Oct 11, 2025
41f5ac0
redo versioning
OffsetMonkey538 Oct 11, 2025
4ee4908
Add command for clearing admin message queue
OffsetMonkey538 Oct 12, 2025
9534d5d
Async pack updating
OffsetMonkey538 Oct 12, 2025
3a93c23
build against 1.21.10
OffsetMonkey538 Oct 12, 2025
ba62165
replace \n with newlines in update message
OffsetMonkey538 Oct 18, 2025
de2cf35
update gradle to v9.1.0
OffsetMonkey538 Oct 20, 2025
eb22355
Update monkeylib to v3.0.0-alpha.0.1761237113556+d3f347d and remove r…
OffsetMonkey538 Oct 23, 2025
a4743ff
update github actions, please tell me this fixes cache not working 🙏
OffsetMonkey538 Oct 23, 2025
e552cfe
Add files via upload
OffsetMonkey538 Oct 23, 2025
635942d
update meshlib to 2.0.0-alpha.0.1761252973683+89c3c64
OffsetMonkey538 Oct 23, 2025
b2d6c89
Merge remote-tracking branch 'origin/v5' into v5
OffsetMonkey538 Oct 23, 2025
0349247
Update monkeylib to v3.0.0-alpha.0.1761395863791+bd100da
OffsetMonkey538 Oct 25, 2025
b265d13
Update Gradle to v9.2.0
OffsetMonkey538 Dec 17, 2025
a64c69d
Update monkeylib
OffsetMonkey538 Dec 26, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Set update schedule for GitHub Actions

version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every week
interval: "daily"
13 changes: 10 additions & 3 deletions .github/workflows/build_artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,31 @@ jobs:
- uses: actions/checkout@v4

- name: Set up JDK 21
uses: actions/setup-java@v4
uses: actions/setup-java@v5
with:
java-version: '21'
distribution: 'temurin'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
uses: gradle/actions/setup-gradle@v5
with:
cache-read-only: false

- name: Store short commit hash
run: echo "short_commit_hash=$(git rev-parse --short "$GITHUB_SHA")" >> "$GITHUB_ENV"

- name: Build with Gradle
run: ./gradlew build
env:
PRESERVE_PRERELEASE_VERSION: true
DISABLE_PROPERTIES_UPDATE: true
VERSION_SUFFIX: ${{ env.short_commit_hash }}

- name: Delete common libs
run: rm -r ./common/build/libs

- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: Artifacts
name: Build Artifacts
path: ./*/build/libs/
7 changes: 5 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,27 @@ jobs:
- uses: actions/checkout@v4

- name: Set up JDK 21
uses: actions/setup-java@v4
uses: actions/setup-java@v5
with:
java-version: '21'
distribution: 'temurin'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
uses: gradle/actions/setup-gradle@v5
with:
cache-read-only: false

- name: Build with Gradle
run: ./gradlew build
env:
IS_RELEASE: true
DISABLE_PROPERTIES_UPDATE: true

- name: Upload to Modrinth
run: ./gradlew modrinth
env:
IS_RELEASE: true
DISABLE_PROPERTIES_UPDATE: true
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
VERSION_NAME: ${{ github.event.release.name }}
VERSION_IS_PRERELEASE: ${{ github.event.release.prerelease }}
Expand Down
41 changes: 37 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,24 +1,58 @@
import dex.plugins.outlet.v2.util.ReleaseType

import java.nio.file.Files

plugins {
id 'fabric-loom' version '1.10-SNAPSHOT' apply false
id 'fabric-loom' version '1.14-SNAPSHOT' apply false
id 'io.github.dexman545.outlet' version '1.6.1' apply false
id 'com.modrinth.minotaur' version '2.+' apply false
}

ext {
versionPrefix = rootProject.mod_version
if (!Boolean.parseBoolean(System.getenv("IS_RELEASE"))) {
String preReleaseVersion = System.currentTimeMillis()

if (Boolean.parseBoolean(System.getenv("PRESERVE_PRERELEASE_VERSION"))) {
var preReleaseVersionFile = file("preReleaseVersion.txt").toPath()
if (Files.exists(preReleaseVersionFile)) preReleaseVersion = Files.readString(preReleaseVersionFile)
Files.writeString(preReleaseVersionFile, preReleaseVersion)
}

var separator = "-"
if (versionPrefix.contains("-")) separator = "."
versionPrefix = "${versionPrefix}${separator}${preReleaseVersion}"
}
final String versionSuffix = System.getenv("VERSION_SUFFIX")
if (versionSuffix != null && !versionSuffix.isEmpty()) {
versionPrefix = "${versionPrefix}+${versionSuffix}"
}

System.out.println("Version Prefix: " + versionPrefix)
}

allprojects {
group = "top.offsetmonkey538.githubresourcepackmanager"

repositories {
mavenLocal()
maven {
name = "OffsetMods538"
url = "https://maven.offsetmonkey538.top/releases"
content {
includeGroup "top.offsetmonkey538.meshlib"
includeGroup "top.offsetmonkey538.monkeylib538"
includeGroup "top.offsetmonkey538.offsetconfig538"
}
}
}
}

subprojects {
apply plugin: "java"

archivesBaseName = "github-resourcepack-manager-${project.nameSuffix}"
version = "${project.mod_version}+${project.minecraft_version}"
base.archivesName = "github-resourcepack-manager-${project.nameSuffix}"
version = "${rootProject.versionPrefix}+${project.minecraft_version}"

java {
withSourcesJar()
Expand Down Expand Up @@ -60,5 +94,4 @@ configure(subprojects.findAll { it.name != "common" }) {
}
}
tasks.modrinth.dependsOn(tasks.modrinthSyncBody)

}
32 changes: 24 additions & 8 deletions common/build.gradle
Original file line number Diff line number Diff line change
@@ -1,30 +1,46 @@
plugins {
id 'java-library'
id 'com.gradleup.shadow' version '9.0.0-beta4'
}

repositories {
mavenCentral()
maven {
name = "OffsetMods538"
url = "https://maven.offsetmonkey538.top/releases"
name = "Mojang Libraries"
url = "https://libraries.minecraft.net"
content {
includeGroup "top.offsetmonkey538.meshlib"
includeGroup "com.mojang"
}
}
}

dependencies {
implementation "org.eclipse.jgit:org.eclipse.jgit:${project.jgit_version}"
implementation "blue.endless:jankson:${project.jankson_version}"
implementation "org.eclipse.jgit:org.eclipse.jgit:${rootProject.jgit_version}"

shadow compileOnly("top.offsetmonkey538.meshlib:mesh-lib-api:${project.meshlib_version}")
shadow compileOnlyApi("top.offsetmonkey538.monkeylib538:monkeylib538-common:${project.monkeylib538_version}")

// should be bundeled with minecraft
shadow compileOnly("top.offsetmonkey538.meshlib:mesh-lib-api:${project.meshlib_version}") {
exclude(group: "top.offsetmonkey538.monkeylib538")
}

// should be bundled with minecraft
shadow compileOnly("com.mojang:brigadier:1.3.10") //todo put in properties
shadow compileOnly("com.google.guava:guava:${project.guava_version}")
shadow compileOnly("commons-io:commons-io:${project.commons_version}")
shadow compileOnly("commons-io:commons-io:${project.commonsio_version}")
shadow compileOnly("org.apache.commons:commons-lang3:${project.commonslang_version}")
shadow compileOnly("com.google.code.gson:gson:${project.gson_version}")

// Jetbrains annotations for gud code
shadow compileOnly("org.jetbrains:annotations:24.0.0")
}
tasks.build.dependsOn(shadowJar)

processResources {
final Map properties = [
"modVersion": project.version
]
inputs.properties(properties)
filesMatching("META-INF/neoforge.mods.toml") {
expand(properties)
}
}
6 changes: 2 additions & 4 deletions common/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
jgit_version = 6.9.0.202403050737-r
guava_version = 33.4.0-jre
commons_version = 2.18.0
commonsio_version = 2.18.0
commonslang_version = 3.18.0
gson_version = 2.11.0
# Jankson, check at https://github.com/falkreon/Jankson
jankson_version = 1.2.3

nameSuffix = api
Loading
Loading