Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CsvReportRenderer broken for Gradle 7 #203

Closed
windmueller opened this issue Apr 9, 2021 · 7 comments
Closed

CsvReportRenderer broken for Gradle 7 #203

windmueller opened this issue Apr 9, 2021 · 7 comments
Assignees
Milestone

Comments

@windmueller
Copy link

When using Gradle 7.0 (currently rc-2), the CsvReportRenderer causes some errors:

Some problems were found with the configuration of task ':generateLicenseReport' (type 'CacheableReportTask').
  - Type 'CacheableReportTask' property 'config.cache.$0.filename' is missing an input or output annotation.
    
    Reason: A property without annotation isn't considered during up-to-date checking.
    
    Possible solutions:
      1. Add an input or output annotation.
      2. Mark it as @Internal.
    
    Please refer to https://docs.gradle.org/7.0-rc-2/userguide/validation_problems.html#missing_annotation for more details about this problem.

This error is repeated for other properties like includeHeaderLine and quote.

@parker-mar
Copy link

parker-mar commented May 4, 2021

Hi there, I am noticing this also with Gradle 7.0 (not rc):

:application:generateLicenseReport (Thread[Execution worker for ':',5,main]) completed. Took 1.652 secs.
FAILURE: Build failed with an exception.
* What went wrong:
Some problems were found with the configuration of task ':application:generateLicenseReport' (type 'CacheableReportTask').
  - Type 'CacheableReportTask' property 'config.cache.$0.filename' is missing an input or output annotation.
    
    Reason: A property without annotation isn't considered during up-to-date checking.
    
    Possible solutions:
      1. Add an input or output annotation.
      2. Mark it as @Internal.
    
    Please refer to https://docs.gradle.org/7.0/userguide/validation_problems.html#missing_annotation for more details about this problem.
  - Type 'CacheableReportTask' property 'config.cache.$0.includeHeaderLine' is missing an input or output annotation.
    
    Reason: A property without annotation isn't considered during up-to-date checking.
    
    Possible solutions:
      1. Add an input or output annotation.
      2. Mark it as @Internal.
    
    Please refer to https://docs.gradle.org/7.0/userguide/validation_problems.html#missing_annotation for more details about this problem.
  - Type 'CacheableReportTask' property 'config.cache.$0.nl' is missing an input or output annotation.
    
    Reason: A property without annotation isn't considered during up-to-date checking.
    
    Possible solutions:
      1. Add an input or output annotation.
      2. Mark it as @Internal.
    
    Please refer to https://docs.gradle.org/7.0/userguide/validation_problems.html#missing_annotation for more details about this problem.
  - Type 'CacheableReportTask' property 'config.cache.$0.quote' is missing an input or output annotation.
    
    Reason: A property without annotation isn't considered during up-to-date checking.
    
    Possible solutions:
      1. Add an input or output annotation.
      2. Mark it as @Internal.
    
    Please refer to https://docs.gradle.org/7.0/userguide/validation_problems.html#missing_annotation for more details about this problem.
  - Type 'CacheableReportTask' property 'config.cache.$0.separator' is missing an input or output annotation.
    
    Reason: A property without annotation isn't considered during up-to-date checking.
    
    Possible solutions:
      1. Add an input or output annotation.
      2. Mark it as @Internal.
    
    Please refer to https://docs.gradle.org/7.0/userguide/validation_problems.html#missing_annotation for more details about this problem.

@aschwarte10
Copy link

We are getting the same problem log with annotations missing in CacheableReport

Is there a chance to publish a new release compatible with Gradle 7, @jk1 ? Do you maybe want help with that?

@schleichardt
Copy link

schleichardt commented Jun 22, 2021

This is what I use as workaround:

import com.github.jk1.license.render.ReportRenderer
import com.github.jk1.license.render.CsvReportRenderer
import com.github.jk1.license.ProjectData

/*
    workaround for https://github.com/jk1/Gradle-License-Report/issues/203 in Version 1.15
    error message:
        Some problems were found with the configuration of task ':generateLicenseReport' (type 'CacheableReportTask').
        - Type 'com.github.jk1.license.task.CacheableReportTask' property 'config.cache.$0.filename' is missing an input or output annotation.
   
    expected code: renderers = [new CsvReportRenderer()]
 */
renderers = [new ReportRenderer() {
    @Override
    void render(ProjectData data) {
        new CsvReportRenderer().render(data)
    }
}]

@jk1
Copy link
Owner

jk1 commented Jul 3, 2021

Hi all.

I'm terribly sorry I was unable to take care of the plugin for some time due to a huge workload.
Will start working on making it Gradle 7.X ready shortly.

@andsel
Copy link

andsel commented Aug 25, 2021

Tried to ./gradlew build on a checkout, but failed with:

> Task :licenseMain FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Some problems were found with the configuration of task ':licenseMain' (type 'LicenseCheck').
  - In plugin 'com.github.hierynomus.license-base' type 'com.hierynomus.gradle.license.tasks.LicenseCheck' property 'URI' is missing an input or output annotation.
    
    Reason: A property without annotation isn't considered during up-to-date checking.
    
    Possible solutions:
      1. Add an input or output annotation.
      2. Mark it as @Internal.

Tried also to update the version of the plugin com.github.hierynomus.license to 0.16.1, it fixed the warning on LicenseCheck task, but the test fails

@jk1
Copy link
Owner

jk1 commented Aug 31, 2021

Hi @andsel,

com.github.hierynomus.license package does look as it belongs to some other plugin, https://github.com/hierynomus/license-gradle-plugin I suppose.

@jk1 jk1 added this to the 2.0 milestone Aug 31, 2021
@jk1 jk1 self-assigned this Aug 31, 2021
@jk1 jk1 closed this as completed Aug 31, 2021
@jk1
Copy link
Owner

jk1 commented Aug 31, 2021

Thank you all for waiting.
The 2.0 plugin version should have it resolved. Please give it a try and let me know if it works for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants