From 9d7c060c6a38a62a706bc30f52a9babb5506544c Mon Sep 17 00:00:00 2001 From: Tee KOBAYASHI Date: Sun, 12 Dec 2021 01:48:47 +0900 Subject: [PATCH] *-java: Use Java 8 --- packages/libbcprov-java/build.sh | 2 +- packages/libcommons-lang3-java/build.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/libbcprov-java/build.sh b/packages/libbcprov-java/build.sh index 71c3c3abf..982076608 100644 --- a/packages/libbcprov-java/build.sh +++ b/packages/libbcprov-java/build.sh @@ -13,7 +13,7 @@ TERMUX_PKG_BUILD_IN_SRC=true termux_step_make() { cd prov local src_dirs="src/main/java ../core/src/main/java" - javac $(find $src_dirs -name "*.java") + javac -encoding UTF-8 -source 1.8 -target 1.8 $(find $src_dirs -name "*.java") _BUILD_JARFILE="$TERMUX_PKG_BUILDDIR/bcprov.jar" rm -f "$_BUILD_JARFILE" for d in $src_dirs; do diff --git a/packages/libcommons-lang3-java/build.sh b/packages/libcommons-lang3-java/build.sh index 874912646..798fba4e1 100644 --- a/packages/libcommons-lang3-java/build.sh +++ b/packages/libcommons-lang3-java/build.sh @@ -11,7 +11,7 @@ TERMUX_PKG_BUILD_IN_SRC=true termux_step_make() { cd src/main/java - javac -encoding UTF-8 $(find . -name "*.java") + javac -encoding UTF-8 -source 1.8 -target 1.8 $(find . -name "*.java") _BUILD_JARFILE="$TERMUX_PKG_BUILDDIR/commons-lang3.jar" rm -f "$_BUILD_JARFILE" jar cf "$_BUILD_JARFILE" $(find . -name "*.class")