*-java: Use Java 8

This commit is contained in:
Tee KOBAYASHI 2021-12-12 01:48:47 +09:00 committed by Leonid Pliushch
parent 52f907cd85
commit 9d7c060c6a
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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")