mirror of
https://github.com/Aizistral-Studios/No-Chat-Restrictions.git
synced 2026-02-04 05:38:24 +00:00
Update all deps and versions for 1.18.2
This commit is contained in:
@@ -40,7 +40,7 @@ processResources {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType(JavaCompile).configureEach {
|
tasks.withType(JavaCompile).configureEach {
|
||||||
it.options.release = 16
|
it.options.release = 17
|
||||||
}
|
}
|
||||||
|
|
||||||
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_16
|
sourceCompatibility = JavaVersion.VERSION_17
|
||||||
targetCompatibility = JavaVersion.VERSION_16
|
targetCompatibility = JavaVersion.VERSION_17
|
||||||
}
|
}
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
@@ -68,10 +68,11 @@ curseforge {
|
|||||||
changelog = file('../CHANGELOG.md')
|
changelog = file('../CHANGELOG.md')
|
||||||
mainArtifact(remapJar)
|
mainArtifact(remapJar)
|
||||||
|
|
||||||
addGameVersion '1.17.1'
|
addGameVersion '1.18.2'
|
||||||
addGameVersion '1.17'
|
addGameVersion '1.18.1'
|
||||||
|
addGameVersion '1.18'
|
||||||
addGameVersion 'Fabric'
|
addGameVersion 'Fabric'
|
||||||
addGameVersion 'Java 8'
|
addGameVersion 'Java 17'
|
||||||
|
|
||||||
relations {
|
relations {
|
||||||
requiredDependency 'fabric-api'
|
requiredDependency 'fabric-api'
|
||||||
@@ -87,7 +88,7 @@ modrinth {
|
|||||||
versionType = "release"
|
versionType = "release"
|
||||||
changelog = rootProject.file("../CHANGELOG.md").text
|
changelog = rootProject.file("../CHANGELOG.md").text
|
||||||
uploadFile = remapJar
|
uploadFile = remapJar
|
||||||
gameVersions = [ '1.17.1', '1.17' ]
|
gameVersions = [ '1.18.2', '1.18.1', '1.18' ]
|
||||||
loaders = [ 'fabric' ]
|
loaders = [ 'fabric' ]
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|||||||
@@ -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.17.1
|
minecraft_version=1.18.2
|
||||||
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.17.1-v1.0.0
|
mod_version=Fabric-MC1.18.2-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.46.1+1.17
|
fabric_api_version=0.77.0+1.18.2
|
||||||
@@ -25,8 +25,8 @@
|
|||||||
],
|
],
|
||||||
"depends": {
|
"depends": {
|
||||||
"fabricloader": ">=0.18.4",
|
"fabricloader": ">=0.18.4",
|
||||||
"minecraft": "~1.17",
|
"minecraft": "~1.18",
|
||||||
"java": ">=16",
|
"java": ">=17",
|
||||||
"fabric": "*"
|
"fabric": "*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"required": true,
|
"required": true,
|
||||||
"package": "com.aizistral.nochatrestrictions.mixins",
|
"package": "com.aizistral.nochatrestrictions.mixins",
|
||||||
"compatibilityLevel": "JAVA_16",
|
"compatibilityLevel": "JAVA_17",
|
||||||
"minVersion": "0.8",
|
"minVersion": "0.8",
|
||||||
"mixins": [],
|
"mixins": [],
|
||||||
"client": [
|
"client": [
|
||||||
|
|||||||
@@ -1,28 +1,23 @@
|
|||||||
buildscript {
|
buildscript {
|
||||||
repositories {
|
repositories {
|
||||||
maven { url = uri("${rootDir}/deps") }
|
|
||||||
maven { url = 'https://files.minecraftforge.net/maven' }
|
|
||||||
maven { url = 'https://repo.spongepowered.org/repository/maven-public/' }
|
maven { url = 'https://repo.spongepowered.org/repository/maven-public/' }
|
||||||
maven { url "https://plugins.gradle.org/m2/" }
|
maven { url "https://plugins.gradle.org/m2/" }
|
||||||
gradlePluginPortal()
|
gradlePluginPortal()
|
||||||
mavenCentral()
|
|
||||||
jcenter()
|
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true
|
|
||||||
classpath 'gradle.plugin.com.matthewprenger:CurseGradle:1.4.0'
|
|
||||||
classpath 'com.modrinth.minotaur:com.modrinth.minotaur.gradle.plugin:2.1.2'
|
|
||||||
classpath group: 'org.spongepowered', name: 'mixingradle', version: '0.7-SNAPSHOT'
|
classpath group: 'org.spongepowered', name: 'mixingradle', version: '0.7-SNAPSHOT'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: 'net.minecraftforge.gradle'
|
plugins {
|
||||||
apply plugin: 'eclipse'
|
id 'eclipse'
|
||||||
apply plugin: 'idea'
|
id 'idea'
|
||||||
apply plugin: 'maven-publish'
|
id 'net.minecraftforge.gradle' version '[6.0,6.2)'
|
||||||
|
id "com.modrinth.minotaur" version "2.+"
|
||||||
|
id "com.matthewprenger.cursegradle" version "1.4.0"
|
||||||
|
}
|
||||||
|
|
||||||
apply plugin: 'org.spongepowered.mixin'
|
apply plugin: 'org.spongepowered.mixin'
|
||||||
apply plugin: "com.modrinth.minotaur"
|
|
||||||
apply plugin: "com.matthewprenger.cursegradle"
|
|
||||||
|
|
||||||
mixin {
|
mixin {
|
||||||
add sourceSets.main, "nochatrestrictions.refmap.json"
|
add sourceSets.main, "nochatrestrictions.refmap.json"
|
||||||
@@ -32,13 +27,17 @@ version = project.modVersion
|
|||||||
group = 'com.aizistral.nochatrestrictions'
|
group = 'com.aizistral.nochatrestrictions'
|
||||||
archivesBaseName = 'NoChatRestrictions'
|
archivesBaseName = 'NoChatRestrictions'
|
||||||
|
|
||||||
// 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.
|
// Mojang ships Java 17 to end users in 1.18+, so your mod should target Java 17.
|
||||||
java.toolchain.languageVersion = JavaLanguageVersion.of(16)
|
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
|
||||||
|
|
||||||
|
tasks.withType(JavaCompile).configureEach {
|
||||||
|
options.encoding = 'UTF-8' // Use the UTF-8 charset for Java compilation
|
||||||
|
}
|
||||||
|
|
||||||
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: 'official', version: '1.17.1'
|
mappings channel: mapping_channel, version: mapping_version
|
||||||
// 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')
|
||||||
|
|
||||||
@@ -78,7 +77,7 @@ repositories {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
minecraft 'net.minecraftforge:forge:1.17.1-37.1.1'
|
minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}"
|
||||||
annotationProcessor 'org.spongepowered:mixin:0.8.4:processor'
|
annotationProcessor 'org.spongepowered:mixin:0.8.4:processor'
|
||||||
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'
|
||||||
@@ -116,10 +115,11 @@ curseforge {
|
|||||||
changelogType = 'markdown'
|
changelogType = 'markdown'
|
||||||
changelog = file('../CHANGELOG.md')
|
changelog = file('../CHANGELOG.md')
|
||||||
|
|
||||||
addGameVersion '1.17.1'
|
addGameVersion '1.18.2'
|
||||||
addGameVersion '1.17'
|
addGameVersion '1.18.1'
|
||||||
|
addGameVersion '1.18'
|
||||||
addGameVersion 'Forge'
|
addGameVersion 'Forge'
|
||||||
addGameVersion 'Java 8'
|
addGameVersion 'Java 17'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -131,7 +131,7 @@ modrinth {
|
|||||||
versionType = "release"
|
versionType = "release"
|
||||||
changelog = rootProject.file("../CHANGELOG.md").text
|
changelog = rootProject.file("../CHANGELOG.md").text
|
||||||
uploadFile = jar
|
uploadFile = jar
|
||||||
gameVersions = [ '1.17.1', '1.17' ]
|
gameVersions = [ '1.18.2', '1.18.1', '1.18' ]
|
||||||
loaders = [ 'forge' ]
|
loaders = [ 'forge' ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,5 +3,10 @@
|
|||||||
org.gradle.jvmargs=-Xmx4G
|
org.gradle.jvmargs=-Xmx4G
|
||||||
org.gradle.daemon=false
|
org.gradle.daemon=false
|
||||||
|
|
||||||
modVersion=Forge-MC1.17.1-v1.0.0
|
minecraft_version=1.18.2
|
||||||
manifestVersion=1.17.1-v1.0.0
|
forge_version=40.3.12
|
||||||
|
mapping_channel=official
|
||||||
|
mapping_version=1.18.2
|
||||||
|
|
||||||
|
modVersion=Forge-MC1.18.2-v1.0.0
|
||||||
|
manifestVersion=1.18.2-v1.0.0
|
||||||
BIN
Forge/gradle/wrapper/gradle-wrapper.jar
vendored
BIN
Forge/gradle/wrapper/gradle-wrapper.jar
vendored
Binary file not shown.
@@ -1,5 +1,5 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
|||||||
16
Forge/gradlew
vendored
16
Forge/gradlew
vendored
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
#
|
#
|
||||||
# Copyright © 2015-2021 the original authors.
|
# Copyright © 2015-2021 the original authors.
|
||||||
#
|
#
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
# you may not use this file except in compliance with the License.
|
# you may not use this file except in compliance with the License.
|
||||||
@@ -32,10 +32,10 @@
|
|||||||
# Busybox and similar reduced shells will NOT work, because this script
|
# Busybox and similar reduced shells will NOT work, because this script
|
||||||
# requires all of these POSIX shell features:
|
# requires all of these POSIX shell features:
|
||||||
# * functions;
|
# * functions;
|
||||||
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
|
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
|
||||||
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
|
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
|
||||||
# * compound commands having a testable exit status, especially «case»;
|
# * compound commands having a testable exit status, especially «case»;
|
||||||
# * various built-in commands including «command», «set», and «ulimit».
|
# * various built-in commands including «command», «set», and «ulimit».
|
||||||
#
|
#
|
||||||
# Important for patching:
|
# Important for patching:
|
||||||
#
|
#
|
||||||
@@ -205,6 +205,12 @@ set -- \
|
|||||||
org.gradle.wrapper.GradleWrapperMain \
|
org.gradle.wrapper.GradleWrapperMain \
|
||||||
"$@"
|
"$@"
|
||||||
|
|
||||||
|
# Stop when "xargs" is not available.
|
||||||
|
if ! command -v xargs >/dev/null 2>&1
|
||||||
|
then
|
||||||
|
die "xargs is not available"
|
||||||
|
fi
|
||||||
|
|
||||||
# Use "xargs" to parse quoted args.
|
# Use "xargs" to parse quoted args.
|
||||||
#
|
#
|
||||||
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
|
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
|
||||||
|
|||||||
14
Forge/gradlew.bat
vendored
14
Forge/gradlew.bat
vendored
@@ -14,7 +14,7 @@
|
|||||||
@rem limitations under the License.
|
@rem limitations under the License.
|
||||||
@rem
|
@rem
|
||||||
|
|
||||||
@if "%DEBUG%" == "" @echo off
|
@if "%DEBUG%"=="" @echo off
|
||||||
@rem ##########################################################################
|
@rem ##########################################################################
|
||||||
@rem
|
@rem
|
||||||
@rem Gradle startup script for Windows
|
@rem Gradle startup script for Windows
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
if "%OS%"=="Windows_NT" setlocal
|
if "%OS%"=="Windows_NT" setlocal
|
||||||
|
|
||||||
set DIRNAME=%~dp0
|
set DIRNAME=%~dp0
|
||||||
if "%DIRNAME%" == "" set DIRNAME=.
|
if "%DIRNAME%"=="" set DIRNAME=.
|
||||||
set APP_BASE_NAME=%~n0
|
set APP_BASE_NAME=%~n0
|
||||||
set APP_HOME=%DIRNAME%
|
set APP_HOME=%DIRNAME%
|
||||||
|
|
||||||
@@ -40,7 +40,7 @@ if defined JAVA_HOME goto findJavaFromJavaHome
|
|||||||
|
|
||||||
set JAVA_EXE=java.exe
|
set JAVA_EXE=java.exe
|
||||||
%JAVA_EXE% -version >NUL 2>&1
|
%JAVA_EXE% -version >NUL 2>&1
|
||||||
if "%ERRORLEVEL%" == "0" goto execute
|
if %ERRORLEVEL% equ 0 goto execute
|
||||||
|
|
||||||
echo.
|
echo.
|
||||||
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||||
@@ -75,13 +75,15 @@ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
|||||||
|
|
||||||
:end
|
:end
|
||||||
@rem End local scope for the variables with windows NT shell
|
@rem End local scope for the variables with windows NT shell
|
||||||
if "%ERRORLEVEL%"=="0" goto mainEnd
|
if %ERRORLEVEL% equ 0 goto mainEnd
|
||||||
|
|
||||||
:fail
|
:fail
|
||||||
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
||||||
rem the _cmd.exe /c_ return code!
|
rem the _cmd.exe /c_ return code!
|
||||||
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
|
set EXIT_CODE=%ERRORLEVEL%
|
||||||
exit /b 1
|
if %EXIT_CODE% equ 0 set EXIT_CODE=1
|
||||||
|
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
|
||||||
|
exit /b %EXIT_CODE%
|
||||||
|
|
||||||
:mainEnd
|
:mainEnd
|
||||||
if "%OS%"=="Windows_NT" endlocal
|
if "%OS%"=="Windows_NT" endlocal
|
||||||
|
|||||||
@@ -1,6 +1,18 @@
|
|||||||
pluginManagement {
|
pluginManagement {
|
||||||
repositories {
|
repositories {
|
||||||
maven { url "https://plugins.gradle.org/m2/" }
|
maven { url = uri("${rootDir}/deps") }
|
||||||
gradlePluginPortal()
|
gradlePluginPortal()
|
||||||
|
maven {
|
||||||
|
name = 'MinecraftForge'
|
||||||
|
url = 'https://maven.minecraftforge.net/'
|
||||||
|
}
|
||||||
|
maven {
|
||||||
|
url = 'https://repo.spongepowered.org/repository/maven-public/'
|
||||||
|
content { includeGroup "org.spongepowered" }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.7.0'
|
||||||
|
}
|
||||||
|
|||||||
@@ -21,6 +21,6 @@ description="A mod dedicated to removing restrictions around the use of multipla
|
|||||||
[[dependencies.nochatrestrictions]]
|
[[dependencies.nochatrestrictions]]
|
||||||
modId="minecraft"
|
modId="minecraft"
|
||||||
mandatory=true
|
mandatory=true
|
||||||
versionRange="[1.17,1.18)"
|
versionRange="[1.18,1.19)"
|
||||||
ordering="NONE"
|
ordering="NONE"
|
||||||
side="BOTH"
|
side="BOTH"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"required": true,
|
"required": true,
|
||||||
"package": "com.aizistral.nochatrestrictions.mixins",
|
"package": "com.aizistral.nochatrestrictions.mixins",
|
||||||
"compatibilityLevel": "JAVA_16",
|
"compatibilityLevel": "JAVA_17",
|
||||||
"minVersion": "0.8",
|
"minVersion": "0.8",
|
||||||
"refmap": "nochatrestrictions.refmap.json",
|
"refmap": "nochatrestrictions.refmap.json",
|
||||||
"mixins": [],
|
"mixins": [],
|
||||||
|
|||||||
Reference in New Issue
Block a user