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

exportLibraries task not working with Gradle 7 #637

Closed
7 of 9 tasks
carstenhag opened this issue May 14, 2021 · 7 comments · Fixed by #641
Closed
7 of 9 tasks

exportLibraries task not working with Gradle 7 #637

carstenhag opened this issue May 14, 2021 · 7 comments · Fixed by #641
Assignees

Comments

@carstenhag
Copy link

carstenhag commented May 14, 2021

About this issue

  • Briefly describe the issue
    exportLibraries task does not work with Gradle 7. findLibraries does work.
  • How can the issue be reproduced / sample code
    Any android project with Gradle 7 configured, I'm guessing.

Details

  •  Used library version - 8.8.5
  •  Used support library version - fairly recent AndroidX versions
  •  Used gradle build tools version: AGP 4.1.3, Gradle 7.0-all
  •  Used tooling / Android Studio version: AS 4.2.1
$ ./gradlew exportLibraries
> Task :app:exportLibraries FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Some problems were found with the configuration of task ':app:exportLibraries' (type 'AboutLibrariesExportTask').
  - Type 'AboutLibrariesExportTask' property 'librariesWithoutLicenses' 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 'AboutLibrariesExportTask' property 'neededLicenses' 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 'AboutLibrariesExportTask' property 'unknownLicenses' 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 'AboutLibrariesExportTask' property 'variant' 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.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/7.0/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 1s
1 actionable task: 1 executed

Checklist

@carstenhag
Copy link
Author

carstenhag commented May 14, 2021

With gradle 6.8.3 it works fine :)

@mikepenz
Copy link
Owner

Are you really on the latest version? we had updated things to rc02 back here: #633 So that seems very interesting

@carstenhag
Copy link
Author

If 8.8.5 is the latest one, then yes :P. Or was the fix not released yet, being only in the branch?

mikepenz added a commit that referenced this issue May 16, 2021
- add required annotations
  - FIX #637
@mikepenz mikepenz self-assigned this May 16, 2021
@carstenhag
Copy link
Author

Thanks!

@mikepenz
Copy link
Owner

mikepenz commented May 17, 2021 via email

@fourofspades
Copy link

fourofspades commented May 17, 2021

Has something changed? My working 885 is now broken on 886.

Execution failed for task ':app:prepareLibraryDefinitionsDebug'.

Receiver class com.mikepenz.aboutlibraries.plugin.AboutLibrariesProcessor does not define or inherit an implementation of the resolved method 'abstract java.lang.Object getProperty(java.lang.String)' of interface groovy.lang.GroovyObject.

@mikepenz
Copy link
Owner

@fourofspades / @mueller-ma I suppose that could be due to: v8.8.5...v8.8.6#diff-e6a7317f36842898d8b7503d337e6c868886a1d08ddd7c79048aa73b883efa7bR42

But even that seems odd as the stacktrace points to a different location.
Please open a new issue for that

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

Successfully merging a pull request may close this issue.

3 participants