I’m trying to get started with the byoc-tool, but seem unable to to even get it built.Â
I’m on OS/X (13.6.6) with apple silicon, and just installed docker and java. Docker version is 26.1.3, build b72abbb6f0. And I get:
Â
 % docker build --tag byoctool .
<+] Building 169.5s (9/12) Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â docker:desktop-linux
 => Âinternal] load build definition from Dockerfile                                                                               0.0s
 => => transferring dockerfile: 413B                                                                                       0.0s
 => internal] load .dockerignore                                                                                        0.0s
 => => transferring context: 2B                                                                                         0.0s
 => internal] load metadata for docker.io/osgeo/gdal:alpine-small-3.3.0                                                                     1.2s
 => internal] load build context                                                                                        0.0s
 => => transferring context: 11.06kB                                                                                       0.0s
 => 1build 1/5] FROM docker.io/osgeo/gdal:alpine-small-3.3.0@sha256:d5ffc56bb797778243a3a6c4d22831a0a19d9af47e23dcbdae279ee423c900d7                                       0.0s
 => CACHED stage-1 2/4] RUN apk add --no-cache openjdk8-jre                                                                           0.0s
 => CACHED build 2/5] RUN apk add --no-cache openjdk8                                                                              0.0s
 => CACHED /build 3/5] ADD . .                                                                                          0.0s
 => ERROR Âbuild 4/5] RUN ./gradlew test                                                                                    168.3s
------ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
 > Âbuild 4/5] RUN ./gradlew test:                                                                                          Â
0.992 Downloading https://services.gradle.org/distributions/gradle-6.0.1-bin.zip                                                                   Â
4.462 .......................................................................................... Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
34.83Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
34.83 Welcome to Gradle 6.0.1! Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
34.83Â
34.83 Here are the highlights of this release:
34.83Â - Substantial improvements in dependency management, including
34.83Â Â - Publishing Gradle Module Metadata in addition to pom.xml
34.83Â Â - Advanced control of transitive versions
34.83Â Â - Support for optional features and dependencies
34.83Â Â - Rules to tweak published metadata
34.83Â - Support for Java 13
34.83Â - Faster incremental Java and Groovy compilation
34.83Â - New Zinc compiler for Scala
34.83Â - VS2019 support
34.83Â - Support for Gradle Enterprise plugin 3.0
34.83Â
34.84 For more details see https://docs.gradle.org/6.0.1/release-notes.html
34.84Â
35.49 Starting a Gradle Daemon (subsequent builds will be faster)
116.3 > Task :compileJava
143.5 > Task :processResources
143.5 > Task :classes
147.9 > Task :compileTestJava
148.0 > Task :processTestResources
148.0 > Task :testClasses
164.7Â
164.7 > Task :test
164.7Â
164.8 com.sinergise.sentinel.byoctool.ingestion.CogFactoryTest > createCogFromMultiBandFile(int, String) 1] FAILED
164.8 Â Â java.lang.RuntimeException at CogFactoryTest.java:58
164.8 Â Â Â Â Caused by: com.sinergise.sentinel.byoctool.ingestion.IngestionException at CogFactoryTest.java:58
164.8Â
164.8 com.sinergise.sentinel.byoctool.ingestion.CogFactoryTest > createCogFromMultiBandFile(int, String)e2] FAILED
164.8 Â Â java.lang.RuntimeException at CogFactoryTest.java:58
164.8 Â Â Â Â Caused by: com.sinergise.sentinel.byoctool.ingestion.IngestionException at CogFactoryTest.java:58
164.8Â
164.8 com.sinergise.sentinel.byoctool.ingestion.CogFactoryTest > createCogFromMultiBandFile(int, String)p3] FAILED
164.8 Â Â java.lang.RuntimeException at CogFactoryTest.java:58
164.8 Â Â Â Â Caused by: com.sinergise.sentinel.byoctool.ingestion.IngestionException at CogFactoryTest.java:58
165.0Â
165.0 com.sinergise.sentinel.byoctool.ingestion.CogFactoryTest > createCogFromMultiBandFile(int, String)>4] FAILED
165.0 Â Â java.lang.RuntimeException at CogFactoryTest.java:58
165.0 Â Â Â Â Caused by: com.sinergise.sentinel.byoctool.ingestion.IngestionException at CogFactoryTest.java:58
165.1Â
165.1 com.sinergise.sentinel.byoctool.ingestion.CogFactoryTest > createCogWithCustomResampling() FAILED
165.1 Â Â java.lang.RuntimeException at CogFactoryTest.java:58
165.1 Â Â Â Â Caused by: com.sinergise.sentinel.byoctool.ingestion.IngestionException at CogFactoryTest.java:58
165.3Â
165.3 45 tests completed, 5 failed, 2 skipped
165.9Â
165.9 > Task :test FAILED
166.2Â
166.3 FAILURE: Build failed with an exception.
166.3Â
166.3 * What went wrong:
166.3 Execution failed for task ':test'.
166.3 > There were failing tests. See the report at: file:///build/reports/tests/test/index.html
166.3Â
166.3 * Try:
166.3 Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
166.3Â
166.3 * Get more help at https://help.gradle.org
166.3Â
166.3 Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
166.3Â
166.3 BUILD FAILED in 2m 45s
166.3 Use '--warning-mode all' to show the individual deprecation warnings.
166.3 See https://docs.gradle.org/6.0.1/userguide/command_line_interface.html#sec:command_line_warnings
166.3 5 actionable tasks: 5 executed
------
Dockerfile:7
--------------------
  5 |   ADD . .
  6 |  Â
  7 | >>> RUN ./gradlew test
  8 |  Â
  9 |   RUN ./gradlew distTar
--------------------
ERROR: failed to solve: process "/bin/sh -c ./gradlew test" did not complete successfully: exit code: 1
Â
I tried java as well, and get an immediate failure:
% ./gradlew shadowJar      Â
Â
FAILURE: Build failed with an exception.
Â
* What went wrong:
Could not initialize class org.codehaus.groovy.runtime.InvokerHelper
> Exception java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.reflection.ReflectionCache cin thread "Daemon worker"]
Â
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Â
* Get more help at https://help.gradle.org
Â
BUILD FAILED in 381ms
Â
Any advice on what to do?