[
https://issues.apache.org/jira/browse/CALCITE-4072?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Julian Hyde updated CALCITE-4072:
---------------------------------
Component/s: avatica
> Avatica build fails with various license errors with Guava 22.0 or higher
> -------------------------------------------------------------------------
>
> Key: CALCITE-4072
> URL: https://issues.apache.org/jira/browse/CALCITE-4072
> Project: Calcite
> Issue Type: Bug
> Components: avatica
> Affects Versions: avatica-1.17.0
> Reporter: Julian Hyde
> Priority: Major
>
> On Guava 22.0 or higher, Avatica build gives various license errors:
> {noformat}
> > 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)
> {noformat}
> 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:
> {noformat}
> ./gradlew clean build -x :tck:getLicenses -x :tck:license -x
> :tck:licenseCopySpec -x :standalone-server:getLicenses -x
> :standalone-server:license -x :standalone-server:licenseCopySpec
> {noformat}
> 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}}.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)