Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
avatica-1.17.0
-
None
-
None
Description
On Guava 22.0 or higher, Avatica build gives various license errors:
> Task :tck:getLicenses FAILED Build calcite-avatica FAILURE reason: Execution failed for task ':tck:getLicenses': LICENSE-like files are missing ============================== MIT * org.codehaus.mojo:animal-sniffer-annotations:1.14 at com.github.vlsi.gradle.license.GatherLicenseTask.run(GatherLicenseTask.kt:417) at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:104) at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:49)
JDK does not seem to be a factor: occurs on JDK 8, 11, 14.
The workaround is to disable various license-checking tasks on the command-line:
./gradlew clean build -x :tck:getLicenses -x :tck:license -x :tck:licenseCopySpec -x :standalone-server:getLicenses -x :standalone-server:license -x :standalone-server:licenseCopySpec
I had expected to be able to change Guava version using -Dguava.version=22.0 on the gradle command line. But I had to edit gradle.properties.