Robert Pösel 52e2060313 Fix building on JitPack
They doesn't have latest CMake installed by default.
But to install it, we need to use sdkmanager which
doesn't support Java 11. So we must first use Java 8,
download cmake, then install and use Java 11.

Alternatively we can forget about installing newer CMake
as compilation works also with older version, but there
are warnings that NDK needs newer CMake. And we would also
have to remove the required CMake version from build.gradle.

Also we must ignore :sample project when building on JitPack
as it breaks build too.
2022-10-22 21:54:28 +02:00

5 lines
80 B
Groovy

include ':tesseract4android'
if (!System.env.JITPACK) {
include ':sample'
}