You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (Jira)" <ji...@apache.org> on 2020/06/18 20:16:00 UTC

[jira] [Created] (CALCITE-4072) Avatica build fails with various license errors with Guava 22.0 or higher

Julian Hyde created CALCITE-4072:
------------------------------------

             Summary: 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
            Reporter: Julian Hyde


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)