[
https://issues.apache.org/jira/browse/SLING-10972?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Konrad Windszus closed SLING-10972.
-----------------------------------
> Testing Sling Mock Oak: Shade (embed and relocate) Guava
> --------------------------------------------------------
>
> Key: SLING-10972
> URL: https://issues.apache.org/jira/browse/SLING-10972
> Project: Sling
> Issue Type: Improvement
> Components: Testing
> Affects Versions: Testing Sling Mock Oak 3.1.0-1.40.0
> Reporter: Konrad Windszus
> Assignee: Konrad Windszus
> Priority: Major
> Fix For: Testing Sling Mock Oak 3.1.2-1.40.0
>
> Time Spent: 1h 10m
> Remaining Estimate: 0h
>
> All Oak bundles are already shaded in
> [https://github.com/apache/sling-org-apache-sling-testing-sling-mock-oak/blob/4f738b2cb2e493c9dc45d0e0f0350705ac548062/pom.xml#L170-L196.]
> This doesn't include the transitive dependency Guava which must be version 15
> as Guava is not 100% backwards compatible (see
> https://issues.apache.org/jira/browse/OAK-7182). In some cases custom bundles
> shade/embed newer Guava classes without exporting those (e.g.
> [https://github.com/Adobe-Consulting-Services/acs-aem-commons/blob/77104988d6971e7d43aa973f859bcdf5a9596f25/bundle/pom.xml#L288]).
> As this currently prevents executing test with Sling Mock Oak, the Guava
> dependency should be shaded as well in sling-mock-oak.
> That way one can use Guava 15 (the shaded version from Sling Mock Oak) for
> testing, while the same bundle can still embed/shade a newer version. Class
> duplications are prevented as the shaded version in Sling Mock Oak is
> relocated.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)