lburgazzoli / gradle-karaf-plugin

Apache License 2.0
21 stars 13 forks source link

Property karaf requires @Internal annotation for gradle 7+ #81

Closed swarringa closed 2 years ago

swarringa commented 2 years ago

When building a gradle 7 project using plugin v0.5.2 the following error is thrown:

A problem was found with the configuration of task ':generateFeatures' (type 'KarafFeaturesTask').
  - In plugin 'com.github.lburgazzoli.karaf' type 'com.github.lburgazzoli.gradle.plugin.karaf.features.KarafFeaturesTask' property 'karaf' is missing an input or output annotation.

Adding @Internal to the karaf property will fix it.

There is already a PR open since july 2021 containing the same fix, but for some reason it failed to build and wasn't merged. This PR is a minimal fix and expected to merge without problems. Hope you can find some to to do it.

lburgazzoli commented 2 years ago

@swarringa can you please rebase ?