gradle-offline-dependencies-plugin icon indicating copy to clipboard operation
gradle-offline-dependencies-plugin copied to clipboard

Missing annotation with gradle 7

Open TLATER opened this issue 2 years ago • 1 comments

Hi, I'm trying to use this with gradle 7, but I'm getting the following:

> Task :updateOfflineRepository FAILED
FAILURE: Build failed with an exception.
* What went wrong:
A problem was found with the configuration of task ':updateOfflineRepository' (type 'UpdateOfflineRepositoryTask').
  - Type 'UpdateOfflineRepositoryTask' property 'EMPTY_DEPENDENCIES_ARRAY' 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.

This clearly points here, but I don't have enough context to figure out how that should be annotated.

I'm guessing it should be marked @Internal, and that this is a requirement for newer gradle versions.

TLATER avatar Jul 22 '21 01:07 TLATER

Any workarounds for this from a consumer side, or are we just blocked from using this plugin until there's a fix when using Gradle 7+ (and therefore for Java projects 17+)?

Edit: Just saw the no maintenance intended! Sorry about that.

markaalvaro avatar Dec 01 '22 15:12 markaalvaro