mirror of
https://github.com/CPTProgrammer/ChatPlus.git
synced 2026-09-22 00:23:36 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ffbc28baf6 | ||
|
|
70e249ca21 | ||
|
|
d9df910db4 | ||
|
|
e1ef1dd38f | ||
|
|
7b166bd3ba | ||
|
|
186fe5a58f |
@@ -43,7 +43,7 @@ _* Other mods may work without explicit support. Report compatibility requests v
|
|||||||
| 1.20 | 1.20 - 1.20.2 |
|
| 1.20 | 1.20 - 1.20.2 |
|
||||||
| 1.20.3 | 1.20.3 - 1.20.6 |
|
| 1.20.3 | 1.20.3 - 1.20.6 |
|
||||||
| 1.21 | 1.21 - 1.21.11 |
|
| 1.21 | 1.21 - 1.21.11 |
|
||||||
| 26.1 | 26.1 - 26.1.2 |
|
| 26.1 | 26.1 - 26.2 |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -112,4 +112,3 @@ To build JARs for all Minecraft versions defined in `./properties`:
|
|||||||
|
|
||||||
- [@SAGUMEDREAM](https://github.com/SAGUMEDREAM) for advice on mixin development.
|
- [@SAGUMEDREAM](https://github.com/SAGUMEDREAM) for advice on mixin development.
|
||||||
- [Distant-Horizons-Team/Distant Horizons](https://gitlab.com/distant-horizons-team/distant-horizons/) for inspiring the build configuration design.
|
- [Distant-Horizons-Team/Distant Horizons](https://gitlab.com/distant-horizons-team/distant-horizons/) for inspiring the build configuration design.
|
||||||
|
|
||||||
|
|||||||
+8
-5
@@ -2,8 +2,8 @@ import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform
|
|||||||
import java.nio.file.Paths
|
import java.nio.file.Paths
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id "net.fabricmc.fabric-loom-remap" version "1.16-SNAPSHOT" apply false
|
id "net.fabricmc.fabric-loom-remap" version "1.17-SNAPSHOT" apply false
|
||||||
id "net.fabricmc.fabric-loom" version "1.16-SNAPSHOT" apply false
|
id "net.fabricmc.fabric-loom" version "1.17-SNAPSHOT" apply false
|
||||||
id "maven-publish"
|
id "maven-publish"
|
||||||
|
|
||||||
// Manifold preprocessor
|
// Manifold preprocessor
|
||||||
@@ -20,6 +20,8 @@ assert loomRemapStr in ["true", "false"] :
|
|||||||
def loomRemap = loomRemapStr.toBoolean()
|
def loomRemap = loomRemapStr.toBoolean()
|
||||||
apply plugin: loomRemap ? "net.fabricmc.fabric-loom-remap" : "net.fabricmc.fabric-loom"
|
apply plugin: loomRemap ? "net.fabricmc.fabric-loom-remap" : "net.fabricmc.fabric-loom"
|
||||||
|
|
||||||
|
boolean hasNewVersionScheme = project.targetVersion.tokenize(".")*.toInteger()[0] >= 26
|
||||||
|
|
||||||
generateBuildProperties(project.minecraftVersions, project.targetVersion)
|
generateBuildProperties(project.minecraftVersions, project.targetVersion)
|
||||||
|
|
||||||
version = "${project.mod_version}-mc${project.targetVersion}"
|
version = "${project.mod_version}-mc${project.targetVersion}"
|
||||||
@@ -93,11 +95,12 @@ dependencies {
|
|||||||
minecraft "com.mojang:minecraft:${project.minecraft_version}"
|
minecraft "com.mojang:minecraft:${project.minecraft_version}"
|
||||||
if (loomRemap) mappings loom.officialMojangMappings()
|
if (loomRemap) mappings loom.officialMojangMappings()
|
||||||
remappableImplementation "net.fabricmc:fabric-loader:${project.fabric_loader_version}"
|
remappableImplementation "net.fabricmc:fabric-loader:${project.fabric_loader_version}"
|
||||||
remappableImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_api_version}+${project.targetVersion}"
|
|
||||||
|
|
||||||
|
def resolvedFabricApiVersion = "${project.fabric_api_version}+${project.targetVersion}"
|
||||||
// Override Fabric API version for local testing (runClient/runServer)
|
// Override Fabric API version for local testing (runClient/runServer)
|
||||||
if (project.hasProperty("test_fabric_api_version"))
|
if (project.hasProperty("test_fabric_api_version"))
|
||||||
remappableLocalRuntime "net.fabricmc.fabric-api:fabric-api:${project.test_fabric_api_version}"
|
resolvedFabricApiVersion = "${project.test_fabric_api_version}"
|
||||||
|
remappableImplementation "net.fabricmc.fabric-api:fabric-api:${resolvedFabricApiVersion}"
|
||||||
|
|
||||||
// Mod Compatibility
|
// Mod Compatibility
|
||||||
if (project.hasProperty("mod_dynmap_version") && !project.mod_dynmap_version.allWhitespace)
|
if (project.hasProperty("mod_dynmap_version") && !project.mod_dynmap_version.allWhitespace)
|
||||||
@@ -118,7 +121,7 @@ processResources {
|
|||||||
def expandProperties = [
|
def expandProperties = [
|
||||||
"version": mod_version,
|
"version": mod_version,
|
||||||
"group": maven_group,
|
"group": maven_group,
|
||||||
"minecraft_version": minecraft_version,
|
"minecraft_version_range": "${hasNewVersionScheme ? "^" : "~"}${targetVersion}",
|
||||||
"java_version": java_version,
|
"java_version": java_version,
|
||||||
"fabric_loader_version": fabric_loader_version,
|
"fabric_loader_version": fabric_loader_version,
|
||||||
"fabric_loader_version_range": hasProperty("min_fabric_loader_version") && !min_fabric_loader_version.allWhitespace ? ">=${min_fabric_loader_version}" : "*",
|
"fabric_loader_version_range": hasProperty("min_fabric_loader_version") && !min_fabric_loader_version.allWhitespace ? ">=${min_fabric_loader_version}" : "*",
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@ org.gradle.parallel=true
|
|||||||
version_properties_path=./properties
|
version_properties_path=./properties
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version=1.1.0
|
mod_version=1.1.1
|
||||||
maven_group=cn.revaria.chatplus
|
maven_group=cn.revaria.chatplus
|
||||||
archives_base_name=chat-plus
|
archives_base_name=chat-plus
|
||||||
|
|
||||||
|
|||||||
Vendored
BIN
Binary file not shown.
+3
-1
@@ -1,7 +1,9 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.1-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-9.6.1-bin.zip
|
||||||
networkTimeout=10000
|
networkTimeout=10000
|
||||||
|
retries=0
|
||||||
|
retryBackOffMs=500
|
||||||
validateDistributionUrl=true
|
validateDistributionUrl=true
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
#
|
#
|
||||||
# Gradle start up script for POSIX generated by Gradle.
|
# gradlew start up script for POSIX generated by Gradle.
|
||||||
#
|
#
|
||||||
# Important for running:
|
# Important for running:
|
||||||
#
|
#
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
# bash, then to run this script, type that shell name before the whole
|
# bash, then to run this script, type that shell name before the whole
|
||||||
# command line, like:
|
# command line, like:
|
||||||
#
|
#
|
||||||
# ksh Gradle
|
# ksh gradlew
|
||||||
#
|
#
|
||||||
# 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:
|
||||||
@@ -57,7 +57,7 @@
|
|||||||
# Darwin, MinGW, and NonStop.
|
# Darwin, MinGW, and NonStop.
|
||||||
#
|
#
|
||||||
# (3) This script is generated from the Groovy template
|
# (3) This script is generated from the Groovy template
|
||||||
# https://github.com/gradle/gradle/blob/2d6327017519d23b96af35865dc997fcb544fb40/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
# https://github.com/gradle/gradle/blob/3d91ce3b8caaf77ad09f381f43615b715b53f72c/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||||
# within the Gradle project.
|
# within the Gradle project.
|
||||||
#
|
#
|
||||||
# You can find Gradle at https://github.com/gradle/gradle/.
|
# You can find Gradle at https://github.com/gradle/gradle/.
|
||||||
|
|||||||
Vendored
+12
-23
@@ -19,12 +19,12 @@
|
|||||||
@if "%DEBUG%"=="" @echo off
|
@if "%DEBUG%"=="" @echo off
|
||||||
@rem ##########################################################################
|
@rem ##########################################################################
|
||||||
@rem
|
@rem
|
||||||
@rem Gradle startup script for Windows
|
@rem gradlew startup script for Windows
|
||||||
@rem
|
@rem
|
||||||
@rem ##########################################################################
|
@rem ##########################################################################
|
||||||
|
|
||||||
@rem Set local scope for the variables with windows NT shell
|
@rem Set local scope for the variables, and ensure extensions are enabled
|
||||||
if "%OS%"=="Windows_NT" setlocal
|
setlocal EnableExtensions
|
||||||
|
|
||||||
set DIRNAME=%~dp0
|
set DIRNAME=%~dp0
|
||||||
if "%DIRNAME%"=="" set DIRNAME=.
|
if "%DIRNAME%"=="" set DIRNAME=.
|
||||||
@@ -51,7 +51,7 @@ echo. 1>&2
|
|||||||
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
||||||
echo location of your Java installation. 1>&2
|
echo location of your Java installation. 1>&2
|
||||||
|
|
||||||
goto fail
|
"%COMSPEC%" /c exit 1
|
||||||
|
|
||||||
:findJavaFromJavaHome
|
:findJavaFromJavaHome
|
||||||
set JAVA_HOME=%JAVA_HOME:"=%
|
set JAVA_HOME=%JAVA_HOME:"=%
|
||||||
@@ -65,29 +65,18 @@ echo. 1>&2
|
|||||||
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
||||||
echo location of your Java installation. 1>&2
|
echo location of your Java installation. 1>&2
|
||||||
|
|
||||||
goto fail
|
"%COMSPEC%" /c exit 1
|
||||||
|
|
||||||
:execute
|
:execute
|
||||||
@rem Setup the command line
|
@rem Setup the command line
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@rem Execute Gradle
|
@rem Execute gradlew
|
||||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
|
@rem endlocal doesn't take effect until after the line is parsed and variables are expanded
|
||||||
|
@rem which allows us to clear the local environment before executing the java command
|
||||||
|
endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* & call :exitWithErrorLevel
|
||||||
|
|
||||||
:end
|
:exitWithErrorLevel
|
||||||
@rem End local scope for the variables with windows NT shell
|
@rem Use "%COMSPEC%" /c exit to allow operators to work properly in scripts
|
||||||
if %ERRORLEVEL% equ 0 goto mainEnd
|
"%COMSPEC%" /c exit %ERRORLEVEL%
|
||||||
|
|
||||||
:fail
|
|
||||||
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
|
||||||
rem the _cmd.exe /c_ return code!
|
|
||||||
set EXIT_CODE=%ERRORLEVEL%
|
|
||||||
if %EXIT_CODE% equ 0 set EXIT_CODE=1
|
|
||||||
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
|
|
||||||
exit /b %EXIT_CODE%
|
|
||||||
|
|
||||||
:mainEnd
|
|
||||||
if "%OS%"=="Windows_NT" endlocal
|
|
||||||
|
|
||||||
:omega
|
|
||||||
|
|||||||
+1
-1
@@ -60,7 +60,7 @@ static String findLatestCompatibleVersion(List<String> sortedVersions, String ve
|
|||||||
sortedVersions.findAll {
|
sortedVersions.findAll {
|
||||||
def versionList = it.tokenize(".")*.toInteger()
|
def versionList = it.tokenize(".")*.toInteger()
|
||||||
compareMinecraftVersion(versionList, targetVersionList) <= 0 &&
|
compareMinecraftVersion(versionList, targetVersionList) <= 0 &&
|
||||||
(targetVersionList[0] == versionList[0] && targetVersionList[1] == versionList[1])
|
(targetVersionList[0] == versionList[0] && (targetVersionList[0] >= 26 || targetVersionList[1] == versionList[1]))
|
||||||
}.max { a, b -> compareMinecraftVersion(a, b) }
|
}.max { a, b -> compareMinecraftVersion(a, b) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
],
|
],
|
||||||
"depends": {
|
"depends": {
|
||||||
"fabricloader": "${fabric_loader_version_range}",
|
"fabricloader": "${fabric_loader_version_range}",
|
||||||
"minecraft": "~${minecraft_version}",
|
"minecraft": "${minecraft_version_range}",
|
||||||
"java": ">=${java_version}",
|
"java": ">=${java_version}",
|
||||||
"${fabric_api_mod_id}": ">=${fabric_api_version}"
|
"${fabric_api_mod_id}": ">=${fabric_api_version}"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user