[ 
https://issues.apache.org/jira/browse/CALCITE-4815?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17423115#comment-17423115
 ] 

Vladimir Sitnikov commented on CALCITE-4815:
--------------------------------------------

The solution here is to enforce newer checker-qual version as follows.

What it does it says "if checker-qual appears on the classpath, use 3.10.0 or 
newer"

{noformat}
diff --git a/bom/build.gradle.kts b/bom/build.gradle.kts
index 71a81839d..acbb02487 100644
--- a/bom/build.gradle.kts
+++ b/bom/build.gradle.kts
@@ -45,6 +45,7 @@ dependencies {
         // In other words, marking dependency as "runtime" would avoid 
accidental
         // dependency on it during compilation
         apiv("com.beust:jcommander")
+        apiv("org.checkerframework:checker-qual", "checkerframework")
         apiv("com.fasterxml.jackson.core:jackson-annotations", "jackson")
         apiv("com.fasterxml.jackson.core:jackson-core", "jackson")
         apiv("com.fasterxml.jackson.core:jackson-databind", "jackson")
diff --git a/gradle.properties b/gradle.properties
index 5d752f413..24fcdde86 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -49,6 +49,7 @@ org.owasp.dependencycheck.version=5.2.2
 # docker-maven-plugin.version=1.2.0

 # Tools
+checkerframework.version=3.10.0
 checkstyle.version=6.18
 spotbugs.version=3.1.11
 # For Checkstyle
{noformat}

> Avatica's Travis fails with 'LICENSE-like files are missing' error
> ------------------------------------------------------------------
>
>                 Key: CALCITE-4815
>                 URL: https://issues.apache.org/jira/browse/CALCITE-4815
>             Project: Calcite
>          Issue Type: Bug
>          Components: avatica
>            Reporter: Julian Hyde
>            Priority: Major
>
> Some configurations of Avatica's Travis CI job fail with the following error. 
> {noformat}
> > Task :standalone-server:classes
> > Task :standalone-server:getLicenses FAILED
> > Task :server:checkstyleTest
> Build calcite-avatica FAILURE reason:                
>                 
>     Execution failed for task 
> ':standalone-server:getLicenses':
>         LICENSE-like files are missing
>         ==============================
>         
>         MIT
>         * org.checkerframework:checker-qual:2.11.1
>         
>             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:58)
> FAILURE: Build failed with an exception.
> * What went wrong:
> Execution failed for task ':standalone-server:getLicenses'.
> > LICENSE-like files are missing
>   ==============================
>   
>   MIT
>   * org.checkerframework:checker-qual:2.11.1
>  {noformat}
>  
> [~vlsi], Do you have any idea what's going on? Avatica doesn't even use 
> checkerframework. You can see the build output (for a few days) at 
> [https://app.travis-ci.com/github/julianhyde/calcite-avatica/builds/238877621].



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to