Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
ff4cd93
Update kotlin plugins to 2.1.0 (#33)
Taskeren Jan 14, 2025
8652b85
Bump latest NHLib version (#34)
ah-OOG-ah Jan 31, 2025
eee2f8a
Update dependencies
eigenraven Feb 16, 2025
8bf4d25
Update gradle to 8.13
eigenraven Mar 2, 2025
56aa179
Update gradle wrapper and github actions
eigenraven Mar 2, 2025
39f075a
Update unimixins
eigenraven Mar 2, 2025
f5b9fad
Do not publish to Modrinth if a version already exists (#36)
eigenraven Mar 2, 2025
917a741
Set Project Version to modVersion in gradle.properties if (gtnh.modul…
Apeiria01 Mar 9, 2025
9c77228
Update dependencies and make use of gradle 8.13's daemon toolchain ve…
eigenraven Mar 9, 2025
173de34
Set `useModGroupForPublishing` to true by default (#40)
glowredman Apr 7, 2025
3be9964
Update Consistency in PropertiesConfiguration.java (#46)
Gamingb3ast Jul 7, 2025
535f5b6
bump unimixins version (#47)
Alexdoru Jul 12, 2025
1e8f46d
bump unimixins version (#48)
Alexdoru Jul 12, 2025
55ac17f
Bump mod version (#49)
Alexdoru Jul 13, 2025
a2d9733
Pin new Unimixins (#53)
Cardinalstars Sep 2, 2025
83b8143
Mark mixins and event handlers as entry points (#54)
leagris Sep 21, 2025
0805a51
Do not register Maven for publication if it's disabled, full stop (#51)
glektarssza Oct 3, 2025
eed1152
Update dependencies (#56)
wlhlm Oct 16, 2025
72779d9
Update GitHub actions dependencies and drop gradle wrapper validation…
wlhlm Oct 16, 2025
b6dc767
update comment about the mixinsPackage property (#52)
Alexdoru Oct 22, 2025
3105b06
bump RFG (#57)
ah-OOG-ah Oct 23, 2025
f07255c
bump lwjgl3ify (#59)
danyadev Oct 27, 2025
86fd242
Separate client and server run dir (#58)
wlhlm Oct 30, 2025
ff78554
Update Gradle to 8.14.3, RFG to 1.4.9
eigenraven Oct 30, 2025
85c964c
Add a v2 upgrade task (#66)
eigenraven Dec 28, 2025
f7e48b5
Update the v1->2 updater to latest v2
eigenraven Feb 14, 2026
812cc0d
Fix updateDaemonJvm setting the wrong toolchain URLs when creating th…
eigenraven Mar 5, 2026
89f3b41
Merge remote-tracking branch 'origin/main' into v1.x
Taskeren Mar 15, 2026
42e0b3e
Update repository
Taskeren Mar 15, 2026
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
26 changes: 16 additions & 10 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,42 @@ name: Build and test

on:
pull_request:
branches: [ master, master-fork, main ]
branches: [ master, main, v1.x ]
push:
branches: [ master, master-fork, main ]
branches: [ master, main, v1.x ]

jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v5
with:
fetch-depth: 0

- name: Validate Gradle Wrapper
uses: gradle/actions/wrapper-validation@v3

- name: Set up JDK 8 and 17
uses: actions/setup-java@v3
- name: Set up JDK versions
uses: actions/setup-java@v5
with:
java-version: |
21
8
17
distribution: 'zulu'
cache: gradle

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
with:
build-scan-publish: true
build-scan-terms-of-use-url: "https://gradle.com/terms-of-service"
build-scan-terms-of-use-agree: "yes"
validate-wrappers: true

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Build the Gradle plugin
run: ./gradlew --info --stacktrace assemble
run: ./gradlew --build-cache --info --stacktrace assemble

- name: Test the plugin
run: ./gradlew --info --stacktrace check
run: ./gradlew --build-cache --info --stacktrace check
25 changes: 15 additions & 10 deletions .github/workflows/publish-javadoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,30 @@ jobs:
javadoc:
concurrency: javadoc-publish
runs-on: ubuntu-latest
outputs:
result_hash: ${{ steps.deploy.outputs.hash }}
steps:
- uses: actions/checkout@v3
- name: Checkout repo
uses: actions/checkout@v5
with:
fetch-depth: 0

- name: Validate Gradle Wrapper
uses: gradle/actions/wrapper-validation@v3

- uses: actions/setup-java@v3
- name: Set up JDK versions
uses: actions/setup-java@v5
with:
java-version: |
21
8
17
distribution: 'zulu'
cache: gradle

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
with:
build-scan-publish: true
build-scan-terms-of-use-url: "https://gradle.com/terms-of-service"
build-scan-terms-of-use-agree: "yes"
validate-wrappers: true

- name: Grant execute permission for gradlew
run: chmod +x gradlew

Expand Down Expand Up @@ -62,8 +68,7 @@ jobs:
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git commit -m "Deploy javadoc from ref $TARGET_FOLDER"
git push
echo "::set-output name=hash::$(git rev-parse HEAD)"
env:
TARGET_FOLDER: ${{ github.ref_name }}
COMMIT_AUTHOR: ${{ github.pusher.name }}
COMMIT_EMAIL: ${{ github.pusher.email }}
COMMIT_AUTHOR: ${{ github.event.push.pusher.name }}
COMMIT_EMAIL: ${{ github.event.push.pusher.email }}
26 changes: 16 additions & 10 deletions .github/workflows/release-tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,35 @@ jobs:
release-build:
runs-on: ubuntu-latest
steps:
- name: Checkout mod repo
uses: actions/checkout@v3
- name: Checkout repo
uses: actions/checkout@v5
with:
fetch-depth: 0

- name: Validate Gradle Wrapper
uses: gradle/actions/wrapper-validation@v3

- name: Set release version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- name: Set up JDK 8 and 17
uses: actions/setup-java@v3
- name: Set up JDK versions
uses: actions/setup-java@v5
with:
java-version: |
21
8
17
distribution: 'zulu'
cache: gradle

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
with:
build-scan-publish: true
build-scan-terms-of-use-url: "https://gradle.com/terms-of-service"
build-scan-terms-of-use-agree: "yes"
validate-wrappers: true

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Set release version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- name: Build the Gradle plugin
run: ./gradlew --info --stacktrace assemble

Expand Down
27 changes: 0 additions & 27 deletions .github/workflows/validate-gradle-wrapper.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ whitelist.json
*.bat
*.DS_Store
!gradlew.bat
/.vs/
59 changes: 34 additions & 25 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
plugins {
`java-gradle-plugin`
id("com.palantir.git-version") version "3.0.0"
id("com.palantir.git-version") version "3.4.0"
`maven-publish`
id("com.diffplug.spotless") version "6.25.0"
id("com.github.gmazzo.buildconfig") version "5.3.5"
id("com.diffplug.spotless") version "8.0.0"
id("com.github.gmazzo.buildconfig") version "5.6.8"
}

val gitVersion: groovy.lang.Closure<String> by extra
Expand All @@ -22,41 +22,44 @@ repositories {
}
mavenCentral()
gradlePluginPortal()
mavenLocal()
}

fun pluginDep(name: String, version: String): String {
return "${name}:${name}.gradle.plugin:${version}"
}

dependencies {
// JDOM2 for XML processing
implementation("org.jdom:jdom2:2.0.6.1")

annotationProcessor("com.github.bsideup.jabel:jabel-javac-plugin:1.0.1")
testAnnotationProcessor("com.github.bsideup.jabel:jabel-javac-plugin:1.0.1")
compileOnly("com.github.bsideup.jabel:jabel-javac-plugin:1.0.1") { isTransitive = false }
// workaround for https://github.com/bsideup/jabel/issues/174
annotationProcessor("net.java.dev.jna:jna-platform:5.13.0")
annotationProcessor("net.java.dev.jna:jna-platform:5.18.1")

// All these plugins will be present in the classpath of the project using our plugin, but not activated until explicitly applied
api(pluginDep("com.gtnewhorizons.retrofuturagradle","1.4.2"))
api(pluginDep("com.gtnewhorizons.retrofuturagradle","1.4.9"))

// Settings plugins
api(pluginDep("com.diffplug.blowdryerSetup", "1.7.1"))
api(pluginDep("org.gradle.toolchains.foojay-resolver-convention", "0.9.0"))

// Project plugins
api(pluginDep("com.github.johnrengelman.shadow", "8.1.1"))
api(pluginDep("com.palantir.git-version", "3.0.0"))
api(pluginDep("org.jetbrains.gradle.plugin.idea-ext", "1.1.8"))
api(pluginDep("org.jetbrains.kotlin.jvm", "2.0.10"))
api(pluginDep("org.jetbrains.kotlin.kapt", "2.0.10"))
api(pluginDep("com.google.devtools.ksp", "2.0.10-1.0.24"))
api(pluginDep("com.gradleup.shadow", "8.3.9"))
api(pluginDep("com.palantir.git-version", "3.4.0"))
api(pluginDep("org.jetbrains.gradle.plugin.idea-ext", "1.1.10"))
api(pluginDep("org.jetbrains.kotlin.jvm", "2.1.10"))
api(pluginDep("org.jetbrains.kotlin.kapt", "2.1.10"))
api(pluginDep("com.google.devtools.ksp", "2.1.10-1.0.29")) // 1.0.29 is the last jvm8 supporting version
api(pluginDep("org.ajoberstar.grgit", "4.1.1")) // 4.1.1 is the last jvm8 supporting version, unused, available for addon.gradle
api(pluginDep("io.github.goooler.shadow", "8.1.7"))
api(pluginDep("de.undercouch.download", "5.6.0"))
api(pluginDep("com.github.gmazzo.buildconfig", "3.1.0")) // Unused, available for addon.gradle
api(pluginDep("com.modrinth.minotaur", "2.8.7"))
api(pluginDep("net.darkhax.curseforgegradle", "1.1.24"))
api(pluginDep("com.github.gmazzo.buildconfig", "5.5.4")) // 5.5.4 is the last jvm8 supporting version, unused, available for addon.gradle
api(pluginDep("com.modrinth.minotaur", "2.8.8"))
api(pluginDep("net.darkhax.curseforgegradle", "1.1.26"))

testImplementation("org.junit.jupiter:junit-jupiter:5.9.3")
testImplementation("org.junit.jupiter:junit-jupiter:5.14.0")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}

Expand Down Expand Up @@ -99,14 +102,15 @@ spotless {
target(".gitignore")

trimTrailingWhitespace()
indentWithSpaces(4)
leadingTabsToSpaces(4)
endWithNewline()
}
java {
target("src/*/java/**/*.java", "src/*/scala/**/*.java")

toggleOffOn()
removeUnusedImports()
forbidWildcardImports()
trimTrailingWhitespace()
eclipse("4.19").configFile("spotless.eclipseformat.xml")
}
Expand All @@ -129,32 +133,37 @@ java {
}
tasks.javadoc {
javadocTool.set(javaToolchains.javadocToolFor {
languageVersion.set(JavaLanguageVersion.of(17))
languageVersion.set(JavaLanguageVersion.of(21))
vendor.set(JvmVendorSpec.AZUL)
})
with(options as StandardJavadocDocletOptions) {
links(
"https://docs.gradle.org/${gradle.gradleVersion}/javadoc/",
"https://docs.oracle.com/en/java/javase/17/docs/api/"
"https://docs.oracle.com/en/java/javase/21/docs/api/"
)
}
}
tasks.withType<JavaCompile> {
sourceCompatibility = "17" // for the IDE support
sourceCompatibility = "21" // for the IDE support
options.release.set(8)
options.encoding = "UTF-8"

javaCompiler.set(javaToolchains.compilerFor {
languageVersion.set(JavaLanguageVersion.of(17))
languageVersion.set(JavaLanguageVersion.of(21))
vendor.set(JvmVendorSpec.AZUL)
})
}

tasks.wrapper.configure {
gradleVersion = "8.5"
gradleVersion = "8.14.3"
distributionType = Wrapper.DistributionType.ALL
}

tasks.updateDaemonJvm.configure {
languageVersion = JavaLanguageVersion.of(21)
vendor.set(JvmVendorSpec.AZUL)
}

configurations["functionalTestRuntimeOnly"].extendsFrom(configurations["testRuntimeOnly"])
configurations["functionalTestImplementation"].extendsFrom(configurations["testImplementation"])
configurations["functionalTestAnnotationProcessor"].extendsFrom(configurations["testAnnotationProcessor"])
Expand Down Expand Up @@ -224,10 +233,10 @@ publishing {
*/
maven {
name = "vogRepository"
url = uri("https://mvn.taskeren.cn/snapshots")
url = uri("https://maven.elytra.cn")
credentials {
username = System.getenv("MAVEN_USER") ?: "NONE"
password = System.getenv("MAVEN_PASSWORD") ?: "NONE"
username = project.findProperty("MAVEN_USERNAME") as? String ?: "NONE"
password = project.findProperty("MAVEN_PASSWORD") as? String ?: "NONE"
}
}
}
Expand Down
13 changes: 13 additions & 0 deletions gradle/gradle-daemon-jvm.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#This file is generated by updateDaemonJvm
toolchainUrl.FREE_BSD.AARCH64=https\://api.foojay.io/disco/v3.0/ids/b7af3dd6719c6b2ce0922ab7745cf065/redirect
toolchainUrl.FREE_BSD.X86_64=https\://api.foojay.io/disco/v3.0/ids/ae0e7983130f400b4eeba0c21a169149/redirect
toolchainUrl.LINUX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/b7af3dd6719c6b2ce0922ab7745cf065/redirect
toolchainUrl.LINUX.X86_64=https\://api.foojay.io/disco/v3.0/ids/ae0e7983130f400b4eeba0c21a169149/redirect
toolchainUrl.MAC_OS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/178ef5b6ab94e21a230e9192a08218b6/redirect
toolchainUrl.MAC_OS.X86_64=https\://api.foojay.io/disco/v3.0/ids/e0839da937c009a667e9601d79d14c0e/redirect
toolchainUrl.UNIX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/b7af3dd6719c6b2ce0922ab7745cf065/redirect
toolchainUrl.UNIX.X86_64=https\://api.foojay.io/disco/v3.0/ids/ae0e7983130f400b4eeba0c21a169149/redirect
toolchainUrl.WINDOWS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/e7f07493b690e7efd5d5bcce5f684777/redirect
toolchainUrl.WINDOWS.X86_64=https\://api.foojay.io/disco/v3.0/ids/b10efa41b5993aec43f4cd5f94d3583c/redirect
toolchainVendor=AZUL
toolchainVersion=21
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-all.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
9 changes: 4 additions & 5 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading