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

Annotate properties for KspTask #364

Closed
msfjarvis opened this issue Mar 23, 2021 · 1 comment · Fixed by #365
Closed

Annotate properties for KspTask #364

msfjarvis opened this issue Mar 23, 2021 · 1 comment · Fixed by #365
Assignees
Labels
bug Something isn't working P1 major features or blocking bugs

Comments

@msfjarvis
Copy link

Gradle 7.0 is making it an error to have properties in your Tasks without an @Input or @Output annotation, as noted here. This causes ksp-1.4.30-1.0.0-alpha05 to fail to run against Gradle 7.0-RC-1 with the following errors.

Details
Some problems were found with the configuration of task ':api:kspKotlin' (type 'KspTask').
  - Type 'KspTask' property 'blockOtherCompilerPlugins' 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-1/userguide/validation_problems.html#missing_annotation for more details about this problem.
  - Type 'KspTask' property 'destination' 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-1/userguide/validation_problems.html#missing_annotation for more details about this problem.
  - Type 'KspTask' property 'kotlinCompile' 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-1/userguide/validation_problems.html#missing_annotation for more details about this problem.
  - Type 'KspTask' property 'options' 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-1/userguide/validation_problems.html#missing_annotation for more details about this problem.

I was able to find the relevant code but lack knowledge of the codebase and Gradle itself to annotate these properties correctly.

@JvmName
Copy link

JvmName commented Mar 23, 2021

If y'all want a gradle scan with the info, I have one here: https://scans.gradle.com/s/qwdwa4mlxmm4u/failure#1

@ting-yuan ting-yuan self-assigned this Mar 23, 2021
@ting-yuan ting-yuan added bug Something isn't working P1 major features or blocking bugs labels Mar 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P1 major features or blocking bugs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants