[ 
https://issues.apache.org/jira/browse/OAK-10305?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Konrad Windszus updated OAK-10305:
----------------------------------
    Description: 
Currently both {{org.osgi.service.component.annotations}} and 
{{org.osgi.service.metatype.annotations}} have the default scope {{compile}} 
which makes this dependency transitively available to dependent Maven modules. 
As those annotations are only relevant at build time they should always be used 
with scope {{provided}} in order to prevent them to be transitively inherited.

  was:
Currently both {{org.osgi.service.component.annotations}} and 
{{org.osgi.service.metatype.annotations}} have the default scope {{compile}} 
which makes this dependency transitively available to dependent Maven modules. 
As those annotations are only relevant at build time they should always be used 
with scope {{provided}}.


> oak-core should changes scope of annotation dependencies to provided
> --------------------------------------------------------------------
>
>                 Key: OAK-10305
>                 URL: https://issues.apache.org/jira/browse/OAK-10305
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.52.0
>            Reporter: Konrad Windszus
>            Assignee: Konrad Windszus
>            Priority: Major
>
> Currently both {{org.osgi.service.component.annotations}} and 
> {{org.osgi.service.metatype.annotations}} have the default scope {{compile}} 
> which makes this dependency transitively available to dependent Maven 
> modules. 
> As those annotations are only relevant at build time they should always be 
> used with scope {{provided}} in order to prevent them to be transitively 
> inherited.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to