Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 3 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ jobs:
strategy:
matrix:
# Use these Java versions
java: [
21, # Current Java LTS
]
java: [ 17 ]
runs-on: ubuntu-22.04
steps:
- name: checkout repository
Expand All @@ -30,8 +28,8 @@ jobs:
- name: build
run: ./gradlew build
- name: capture build artifacts
if: ${{ matrix.java == '21' }} # Only upload artifacts built from latest java
if: ${{ matrix.java == '17' }} # Only upload artifacts built from latest java
uses: actions/upload-artifact@v4
with:
name: Artifacts
path: build/libs/
path: build/libs/
12 changes: 7 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ processResources {
expand "version": project.version
}
}

compileJava {
options.compilerArgs += ['--enable-preview']
}
tasks.withType(JavaCompile).configureEach {
it.options.release = 21
it.options.release = 17
}

java {
Expand All @@ -51,8 +53,8 @@ java {
// If you remove this line, sources will not be generated.
withSourcesJar()

sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

jar {
Expand All @@ -77,4 +79,4 @@ publishing {
// The repositories here will be used for publishing your artifact, not for
// retrieving dependencies.
}
}
}
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.12-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
3 changes: 1 addition & 2 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 src/main/java/dev/oxydien/workers/ModDownloadWorker.java
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,8 @@ private void runModification(SyncData.Modification modification) {
for (var filePath : relativeMatches) {
var matcher = pattern.matcher(filePath);
if (matcher.matches()) {
matches.add(filePath);
Log.Log.debug("bw.runModification", "Found match for {} at {}", modification.getPattern(), filePath);
matches.add(workingDirectory + "/" + filePath);
Log.Log.debug("bw.runModification", "Found match for {} at {}", modification.getPattern(), (workingDirectory + "/" + filePath));
break;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
"fabricloader": ">=0.16.5",
"minecraft": "~1.20.1",
"fabric-api": "*",
"java": ">=21"
"java": ">=17"
}
}
2 changes: 1 addition & 1 deletion src/main/resources/simple-mod-sync.mixins.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"required": true,
"package": "dev.oxydien.mixin",
"compatibilityLevel": "JAVA_21",
"compatibilityLevel": "JAVA_17",
"mixins": [
"TitleScreenMixin"
],
Expand Down