#!/bin/bash
set -xe
PROJECT_PREFIX=`readlink -e .`
[[ -d /usr/lib/jvm/java-11-openjdk/  ]] && export JAVA_HOME=/usr/lib/jvm/java-11-openjdk/ # Forcing J11 for RHEL
export GRADLE_USER_HOME=/tmp/gradle
cp -r kit/* /tmp
cd src/ical4j-ical4j-3.0.18
./gradlew --offline --project-cache-dir /tmp/gradle-project clean build -x test -x javadoc

