mdietrichstein / gradle-offline-dependencies-plugin

Store project dependencies alongside your code for reproducible offline builds
Apache License 2.0
85 stars 27 forks source link

Missing annotation with gradle 7 #25

Open TLATER opened 3 years ago

TLATER commented 3 years ago

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.

markaalvaro commented 1 year ago

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.