Update all deps and versions

This commit is contained in:
Aizistral
2026-01-26 19:10:25 +01:00
parent 439057c022
commit 796ba49cda
4 changed files with 17 additions and 16 deletions

View File

@@ -40,7 +40,7 @@ processResources {
} }
tasks.withType(JavaCompile).configureEach { tasks.withType(JavaCompile).configureEach {
it.options.release = 8 it.options.release = 16
} }
java { java {
@@ -49,8 +49,8 @@ java {
// If you remove this line, sources will not be generated. // If you remove this line, sources will not be generated.
withSourcesJar() withSourcesJar()
sourceCompatibility = JavaVersion.VERSION_1_8 sourceCompatibility = JavaVersion.VERSION_16
targetCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_16
} }
jar { jar {
@@ -68,8 +68,8 @@ curseforge {
changelog = file('../CHANGELOG.md') changelog = file('../CHANGELOG.md')
mainArtifact(remapJar) mainArtifact(remapJar)
addGameVersion '1.16.4' addGameVersion '1.17.1'
addGameVersion '1.16.5' addGameVersion '1.17'
addGameVersion 'Fabric' addGameVersion 'Fabric'
addGameVersion 'Java 8' addGameVersion 'Java 8'
@@ -87,7 +87,7 @@ modrinth {
versionType = "release" versionType = "release"
changelog = rootProject.file("../CHANGELOG.md").text changelog = rootProject.file("../CHANGELOG.md").text
uploadFile = remapJar uploadFile = remapJar
gameVersions = [ '1.16.4', '1.16.5' ] gameVersions = [ '1.17.1', '1.17' ]
loaders = [ 'fabric' ] loaders = [ 'fabric' ]
dependencies { dependencies {

View File

@@ -7,14 +7,14 @@ org.gradle.configuration-cache=false
# Fabric Properties # Fabric Properties
# check these on https://fabricmc.net/develop # check these on https://fabricmc.net/develop
minecraft_version=1.16.4 minecraft_version=1.17.1
loader_version=0.18.4 loader_version=0.18.4
loom_version=1.13-SNAPSHOT loom_version=1.13-SNAPSHOT
# Mod Properties # Mod Properties
mod_version=Fabric-MC1.16.4-v1.0.0 mod_version=Fabric-MC1.17.1-v1.0.0
maven_group=com.aizistral.nochatrestrictions maven_group=com.aizistral.nochatrestrictions
archives_base_name=NoChatRestrictions archives_base_name=NoChatRestrictions
# Dependencies # Dependencies
fabric_api_version=0.42.0+1.16 fabric_api_version=0.46.1+1.17

View File

@@ -11,7 +11,7 @@ buildscript {
jcenter() jcenter()
} }
dependencies { dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true
classpath 'gradle.plugin.com.matthewprenger:CurseGradle:1.4.0' classpath 'gradle.plugin.com.matthewprenger:CurseGradle:1.4.0'
classpath 'com.modrinth.minotaur:com.modrinth.minotaur.gradle.plugin:1.2.0' classpath 'com.modrinth.minotaur:com.modrinth.minotaur.gradle.plugin:1.2.0'
classpath 'org.spongepowered:mixingradle:0.7-SNAPSHOT' classpath 'org.spongepowered:mixingradle:0.7-SNAPSHOT'
@@ -34,12 +34,13 @@ version = project.modVersion
group = 'com.aizistral.nochatrestrictions' group = 'com.aizistral.nochatrestrictions'
archivesBaseName = 'NoChatRestrictions' archivesBaseName = 'NoChatRestrictions'
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' // Mojang ships Java 16 to end users in 1.17+ instead of Java 8 in 1.16 or lower, so your mod should target Java 16.
java.toolchain.languageVersion = JavaLanguageVersion.of(16)
println('Java: ' + System.getProperty('java.version') + ' JVM: ' + System.getProperty('java.vm.version') + '(' + System.getProperty('java.vendor') + ') Arch: ' + System.getProperty('os.arch')) println('Java: ' + System.getProperty('java.version') + ' JVM: ' + System.getProperty('java.vm.version') + '(' + System.getProperty('java.vendor') + ') Arch: ' + System.getProperty('os.arch'))
minecraft { minecraft {
mappings channel: 'snapshot', version: '20201028-1.16.3' mappings channel: 'official', version: '1.17.1'
// makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable. // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
// accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg') // accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
@@ -79,7 +80,7 @@ repositories {
} }
dependencies { dependencies {
minecraft 'net.minecraftforge:forge:1.16.4-35.1.37' minecraft 'net.minecraftforge:forge:1.17.1-37.1.1'
annotationProcessor 'org.spongepowered:mixin:0.8' annotationProcessor 'org.spongepowered:mixin:0.8'
annotationProcessor 'com.google.code.gson:gson:2.8.0' annotationProcessor 'com.google.code.gson:gson:2.8.0'
annotationProcessor 'com.google.guava:guava:21.0' annotationProcessor 'com.google.guava:guava:21.0'
@@ -117,8 +118,8 @@ curseforge {
changelogType = 'markdown' changelogType = 'markdown'
changelog = file('../CHANGELOG.md') changelog = file('../CHANGELOG.md')
addGameVersion '1.16.4' addGameVersion '1.17.1'
addGameVersion '1.16.5' addGameVersion '1.17'
addGameVersion 'Forge' addGameVersion 'Forge'
addGameVersion 'Java 8' addGameVersion 'Java 8'
} }

View File

@@ -3,4 +3,4 @@
org.gradle.jvmargs=-Xmx4G org.gradle.jvmargs=-Xmx4G
org.gradle.daemon=false org.gradle.daemon=false
modVersion=Forge-MC1.16.4-v1.0.0 modVersion=Forge-MC1.17.1-v1.0.0