mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-09 20:06:39 -04:00
Bump Gradle to 8.3 (#2475)
This commit is contained in:
parent
fe622579cf
commit
d83b508ce4
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Binary file not shown.
3
gradle/wrapper/gradle-wrapper.properties
vendored
3
gradle/wrapper/gradle-wrapper.properties
vendored
@ -1,6 +1,7 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.1-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
|
||||||
networkTimeout=10000
|
networkTimeout=10000
|
||||||
|
validateDistributionUrl=true
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
15
gradlew
vendored
15
gradlew
vendored
@ -83,10 +83,8 @@ done
|
|||||||
# This is normally unused
|
# This is normally unused
|
||||||
# shellcheck disable=SC2034
|
# shellcheck disable=SC2034
|
||||||
APP_BASE_NAME=${0##*/}
|
APP_BASE_NAME=${0##*/}
|
||||||
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
|
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
|
||||||
|
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
|
||||||
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
|
||||||
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
|
||||||
|
|
||||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||||
MAX_FD=maximum
|
MAX_FD=maximum
|
||||||
@ -133,10 +131,13 @@ location of your Java installation."
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
JAVACMD=java
|
JAVACMD=java
|
||||||
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
if ! command -v java >/dev/null 2>&1
|
||||||
|
then
|
||||||
|
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||||
|
|
||||||
Please set the JAVA_HOME variable in your environment to match the
|
Please set the JAVA_HOME variable in your environment to match the
|
||||||
location of your Java installation."
|
location of your Java installation."
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Increase the maximum file descriptors if we can.
|
# Increase the maximum file descriptors if we can.
|
||||||
@ -197,6 +198,10 @@ if "$cygwin" || "$msys" ; then
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||||
|
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
||||||
|
|
||||||
# Collect all arguments for the java command;
|
# Collect all arguments for the java command;
|
||||||
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
|
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
|
||||||
# shell script including quotes and variable substitutions, so put them in
|
# shell script including quotes and variable substitutions, so put them in
|
||||||
|
@ -23,9 +23,9 @@ data class Platform(
|
|||||||
module: String, classifier: String, ext: String,
|
module: String, classifier: String, ext: String,
|
||||||
repo: String = "https://repo1.maven.org/maven2"
|
repo: String = "https://repo1.maven.org/maven2"
|
||||||
): java.net.URL =
|
): java.net.URL =
|
||||||
java.net.URL(
|
java.net.URI(
|
||||||
"$repo/${groupId.replace('.', '/')}/javafx-$module/$version/javafx-$module-$version-$classifier.$ext"
|
"$repo/${groupId.replace('.', '/')}/javafx-$module/$version/javafx-$module-$version-$classifier.$ext"
|
||||||
)
|
).toURL()
|
||||||
}
|
}
|
||||||
|
|
||||||
val jfxModules = listOf("base", "graphics", "controls", "media", "web")
|
val jfxModules = listOf("base", "graphics", "controls", "media", "web")
|
||||||
@ -53,7 +53,7 @@ val jfxInClasspath =
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!jfxInClasspath && JavaVersion.current() >= JavaVersion.VERSION_11) {
|
if (!jfxInClasspath && JavaVersion.current() >= JavaVersion.VERSION_11) {
|
||||||
val os = System.getProperty("os.name").toLowerCase().let { osName ->
|
val os = System.getProperty("os.name").lowercase().let { osName ->
|
||||||
when {
|
when {
|
||||||
osName.contains("win") -> "windows"
|
osName.contains("win") -> "windows"
|
||||||
osName.contains("mac") -> "osx"
|
osName.contains("mac") -> "osx"
|
||||||
@ -62,7 +62,7 @@ if (!jfxInClasspath && JavaVersion.current() >= JavaVersion.VERSION_11) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val arch = when (System.getProperty("os.arch").toLowerCase()) {
|
val arch = when (System.getProperty("os.arch").lowercase()) {
|
||||||
"x86_64", "x86-64", "amd64", "ia32e", "em64t", "x64" -> "x86_64"
|
"x86_64", "x86-64", "amd64", "ia32e", "em64t", "x64" -> "x86_64"
|
||||||
"x86", "x86_32", "x86-32", "i386", "i486", "i586", "i686", "i86pc", "ia32", "x32" -> "x86"
|
"x86", "x86_32", "x86-32", "i386", "i486", "i586", "i686", "i86pc", "ia32", "x32" -> "x86"
|
||||||
"arm64", "aarch64", "armv8", "armv9" -> "arm64"
|
"arm64", "aarch64", "armv8", "armv9" -> "arm64"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user