Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-4072

Avatica build fails with various license errors with Guava 22.0 or higher

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • avatica-1.17.0
    • None
    • avatica
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            julianhyde Julian Hyde
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: