Skip to content

Commit a2f5d41

Browse files
committed
[1.18.2] Port
1 parent 61cbc16 commit a2f5d41

File tree

15 files changed

+35
-36
lines changed

15 files changed

+35
-36
lines changed

.github/workflows/build-linux.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ jobs:
2323
uses: actions/setup-java@v4
2424
with:
2525
distribution: 'temurin'
26-
java-version: |
27-
16
28-
${{ matrix.java }}
26+
java-version: ${{ matrix.java }}
2927

3028
- name: Cache Gradle packages
3129
uses: actions/cache@v4

.github/workflows/build-win.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ jobs:
2121
uses: actions/setup-java@v4
2222
with:
2323
distribution: 'temurin'
24-
java-version: |
25-
16
26-
${{ matrix.java }}
24+
java-version: ${{ matrix.java }}
2725

2826
- name: build
2927
run: ./gradlew build

.github/workflows/publish.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ jobs:
2323
uses: actions/setup-java@v4
2424
with:
2525
distribution: 'temurin'
26-
java-version: |
27-
16
28-
${{ matrix.java }}
26+
java-version: ${{ matrix.java }}
2927

3028
- name: Cache Gradle packages
3129
uses: actions/cache@v4

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ A client-side Minecraft mod that allows the system narrator to read books to you
77

88
## Current Target Game Versions
99
New releases are not planned to occur outside of these version ranges. Existing versions outside these ranges may still function, but are no longer supported.
10-
- Fabric: Minecraft 1.17.1 - Current
10+
- Fabric: Minecraft 1.17 - Current
1111
- Forge: Minecraft 1.17 - 1.20.6

build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ subprojects { Project subProject ->
1717
apply plugin: 'maven-publish'
1818
apply plugin: 'signing'
1919

20-
sourceCompatibility = JavaVersion.VERSION_16
21-
targetCompatibility = JavaVersion.VERSION_16
22-
java.toolchain.languageVersion = JavaLanguageVersion.of(16)
20+
sourceCompatibility = JavaVersion.VERSION_17
21+
targetCompatibility = JavaVersion.VERSION_17
22+
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
2323

2424
group = project.maven_group
2525
version = "${project.mod_version}+${project.minecraft_version}"
@@ -29,7 +29,7 @@ subprojects { Project subProject ->
2929

3030
tasks.withType(JavaCompile).configureEach {
3131
it.options.encoding = 'UTF-8'
32-
it.options.release.set(16)
32+
it.options.release.set(17)
3333
}
3434

3535
javadoc.options.addStringOption('Xdoclint:none', '-quiet')

common/src/main/resources/audiobook.mixins.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"required": true,
33
"minVersion": "0.8",
44
"package": "dev.the_fireplace.audiobook.mixin",
5-
"compatibilityLevel": "JAVA_16",
5+
"compatibilityLevel": "JAVA_17",
66
"client": [
77
"BookViewScreenMixin",
88
"MinecraftMixin",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"pack": {
33
"description": "${readable_name}",
4-
"pack_format": 7
4+
"pack_format": 8
55
}
66
}

fabric/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ plugins {
99
archivesBaseName = "${archives_base_name}-Fabric"
1010
final def mainArtifactFile = layout.buildDirectory.file("libs/${archivesBaseName}-${version}.jar").get().asFile
1111
final def changelogFile = file('../changelog.txt')
12-
final def supportedMinecraftVersions = [project.minecraft_version, '1.17']
12+
final def supportedMinecraftVersions = [project.minecraft_version, '1.18.1', '1.18', '1.17.1', '1.17']
1313

1414
dependencies {
1515
minecraft "com.mojang:minecraft:${minecraft_version}"
@@ -84,7 +84,7 @@ if (hasProperty('curseForgeApiKey') || System.getenv("CURSEFORGE_API_KEY") != nu
8484
supportedMinecraftVersions.each { value ->
8585
addGameVersion value
8686
}
87-
addGameVersion 'Java 16'
87+
addGameVersion 'Java 17'
8888
addGameVersion 'Fabric'
8989
addGameVersion 'Quilt'
9090
mainArtifact(mainArtifactFile) {

forge/build.gradle

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ buildscript {
1313
plugins {
1414
id 'java'
1515
id 'java-library'
16-
id 'net.minecraftforge.gradle' version '[6.0,6.2)'
16+
id 'net.minecraftforge.gradle' version '[6.0.24,6.2)'
1717
// Mod Hosting Publish
1818
id 'com.matthewprenger.cursegradle' version '1.4.0'
1919
id 'com.modrinth.minotaur' version '2.+'
@@ -22,13 +22,9 @@ apply plugin: 'net.minecraftforge.gradle'
2222
apply plugin: 'org.spongepowered.mixin'
2323

2424
archivesBaseName = "${archives_base_name}-Forge"
25-
def mainArtifactFile = layout.buildDirectory.file("libs/${archivesBaseName}-${version}.jar").get().asFile
26-
def changelogFile = file('../changelog.txt')
27-
def supportedMinecraftVersions = [project.minecraft_version, '1.17']
28-
29-
repositories {
30-
maven { url 'https://maven.shedaniel.me/' }
31-
}
25+
final def mainArtifactFile = layout.buildDirectory.file("libs/${archivesBaseName}-${version}.jar").get().asFile
26+
final def changelogFile = file('../changelog.txt')
27+
final def supportedMinecraftVersions = [project.minecraft_version, '1.18.1', '1.18']
3228

3329
dependencies {
3430
minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}"
@@ -49,6 +45,8 @@ mixin {
4945
minecraft {
5046
mappings channel: 'official', version: minecraft_version
5147

48+
copyIdeResources = true
49+
5250
runs {
5351
client {
5452
workingDirectory project.file('run')
@@ -145,7 +143,7 @@ if (hasProperty('curseForgeApiKey') || System.getenv("CURSEFORGE_API_KEY") != nu
145143
supportedMinecraftVersions.each { value ->
146144
addGameVersion value
147145
}
148-
addGameVersion 'Java 16'
146+
addGameVersion 'Java 17'
149147
addGameVersion 'Forge'
150148
mainArtifact(mainArtifactFile) {
151149
displayName = "$archivesBaseName-$version"

forge/settings.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
plugins {
2+
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.7.0'
3+
}

0 commit comments

Comments
 (0)