[
https://issues.apache.org/jira/browse/SLING-10471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17359499#comment-17359499
]
Carsten Ziegeler commented on SLING-10471:
------------------------------------------
First implemented at
https://github.com/apache/sling-org-apache-sling-feature-extension-apiregions/commit/3c3861b8070b9a2bd739928d6d9b21a3677ff39d
The deprecation info can now be configured with a "for-removal" information
(extended version of the forRemoval attribute from the Deprecated annotation).
The value should be either true or false or a date formatted like YYYY-MM-DD
If such a date is set and the analyser is configured with a positive
removal-period, and there are less days left than the configured period, then
an error is issued instead of warning.
Updated documentation
> Allow giving and evaluating an optional removal date for deprecated package
> exports
> -----------------------------------------------------------------------------------
>
> Key: SLING-10471
> URL: https://issues.apache.org/jira/browse/SLING-10471
> Project: Sling
> Issue Type: Improvement
> Components: Feature Model Analyser
> Affects Versions: Feature Model API Regions Extension 1.2.10
> Reporter: Konrad Windszus
> Assignee: Carsten Ziegeler
> Priority: Major
>
> The [CheckDeprecatedApi
> analyser|https://github.com/apache/sling-org-apache-sling-feature-extension-apiregions/blob/master/src/main/java/org/apache/sling/feature/extension/apiregions/analyser/CheckDeprecatedApi.java]
> should automatically raise warnings to errors in case a deprecated package
> is used which is soon to be removed.
> That requires extending the
> [ApiExport|https://github.com/apache/sling-org-apache-sling-feature-extension-apiregions/blob/30868952cdb97f6e0c63839ab808ff680bc092bc/src/main/java/org/apache/sling/feature/extension/apiregions/api/ApiExport.java#L38]
> to allow it to hold a removal date for deprecated exported packages.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)