Merge pull request #160 from AppleCommander/toil/upgrade-gradle-and-cleanup

Toil/upgrade gradle and cleanup
This commit is contained in:
A2 Geek authored and GitHub committed 2025-08-01 09:46:31 -05:00
commit b1480851f1
4 files changed
+1 -71

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.2-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
-21
View File
@@ -1,21 +0,0 @@
#!/bin/bash
TMP=$(mktemp -d)
if [ -z ${TMP} ]
then
echo "Problem creating TEMP directory; aborting!"
exit 1
fi
pushd build
for JAR in $(find . -name "*.jar" -a -not -name "*-sources.jar" -a -not -name "*-javadoc.jar")
do
echo "Checking ${JAR}..."
unzip -qq -d ${TMP} ${JAR}
find ${TMP} -name "*.class" | xargs file -b | sort -u
rm -rf ${TMP}/*
echo
done
popd
rm -rf ${TMP}
Binary file not shown.
-49
View File
@@ -1,49 +0,0 @@
#!/bin/sh
if [ $# -gt 0 -a "$1" = "-v" ]
then
RETROFLAG="false"
JARFLAG="v"
shift
set -x
fi
if [ $# -ne 1 ]
then
echo Provide on jar file to convert on the command line.
exit 1
fi
REALPATH=$(realpath $0)
BIN_DIR=`dirname "$REALPATH"`
LIB_DIR=$BIN_DIR
JAR_TO_CONVERT="$1"
INPUT_DIR="$JAR_TO_CONVERT".inputdir
OUTPUT_DIR="$JAR_TO_CONVERT".outputdir
rm -rf "$INPUT_DIR"
rm -rf "$OUTPUT_DIR"
mkdir "$INPUT_DIR"
mkdir "$OUTPUT_DIR"
(cd "$INPUT_DIR"; jar -x${JARFLAG}f $OLDPWD/"$JAR_TO_CONVERT")
echo "Converting..."
java \
-Dretrolambda.bytecodeVersion=49 \
-Dretrolambda.defaultMethods=true \
-Dretrolambda.inputDir="$INPUT_DIR" \
-Dretrolambda.outputDir="$OUTPUT_DIR" \
-Dretrolambda.classpath="$JAR_TO_CONVERT" \
-Dretrolambda.javacHacks=true \
-Dretrolambda.quiet=${RETROFLAG:-true} \
-jar "$LIB_DIR"/retrolambda-2.5.6.jar
# The order of the "m" and "f" must match the order that the
# corresponding files appear in the argument list. This is
# so stupid...
NEW_JAR_NAME="${JAR_TO_CONVERT%.jar}-java5.jar"
echo "Repackaging to ${NEW_JAR_NAME}"
jar -c${JARFLAG}fm "${NEW_JAR_NAME}" \
"$OUTPUT_DIR"/META-INF/MANIFEST.MF \
-C "$OUTPUT_DIR" .