forked from public-mirrors/HuskSync
build: Require Java 17, Minecraft 1.17.1
parent
280e90e297
commit
24453d0e1a
@ -1,19 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
JV=$(java -version 2>&1 >/dev/null | head -1)
|
|
||||||
echo "$JV" | sed -E 's/^.*version "([^".]*)\.[^"]*".*$/\1/'
|
|
||||||
|
|
||||||
if [ "$JV" != 16 ]; then
|
|
||||||
case "$1" in
|
|
||||||
install)
|
|
||||||
echo "installing sdkman..."
|
|
||||||
curl -s "https://get.sdkman.io" | bash
|
|
||||||
source ~/.sdkman/bin/sdkman-init.sh
|
|
||||||
sdk install java 16.0.1-open
|
|
||||||
;;
|
|
||||||
use)
|
|
||||||
echo "must source ~/.sdkman/bin/sdkman-init.sh"
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
fi
|
|
@ -1,13 +1,13 @@
|
|||||||
org.gradle.jvmargs='-Dfile.encoding=UTF-8'
|
org.gradle.jvmargs='-Dfile.encoding=UTF-8'
|
||||||
|
|
||||||
org.gradle.daemon=true
|
org.gradle.daemon=true
|
||||||
javaVersion=16
|
javaVersion=17
|
||||||
|
|
||||||
plugin_version=3.2.2
|
plugin_version=3.2.2
|
||||||
plugin_archive=husksync
|
plugin_archive=husksync
|
||||||
plugin_description=A modern, cross-server player data synchronization system
|
plugin_description=A modern, cross-server player data synchronization system
|
||||||
|
|
||||||
jedis_version=5.1.0
|
jedis_version=5.1.0
|
||||||
mysql_driver_version=8.2.0
|
mysql_driver_version=8.3.0
|
||||||
mariadb_driver_version=3.3.2
|
mariadb_driver_version=3.3.2
|
||||||
snappy_version=1.1.10.5
|
snappy_version=1.1.10.5
|
||||||
|
@ -1,12 +0,0 @@
|
|||||||
# This file ensures jitpack builds HuskSync correctly by setting the JDK to 16
|
|
||||||
jdk:
|
|
||||||
- 'openjdk16'
|
|
||||||
before_install:
|
|
||||||
- 'git clone https://github.com/WiIIiam278/HuskSync.git --recurse-submodules'
|
|
||||||
- 'chmod +x gradlew'
|
|
||||||
- 'chmod +x ./.scripts/ensure-java-16'
|
|
||||||
- 'bash ./.scripts/ensure-java-16 install'
|
|
||||||
install:
|
|
||||||
- 'if ! ./.scripts/ensure-java-16 use; then source ~/.sdkman/bin/sdkman-init.sh; fi'
|
|
||||||
- 'java -version'
|
|
||||||
- './gradlew publishToMavenLocal'
|
|
Loading…
Reference in New Issue