Pablo Castelo created SLING-12418:
-------------------------------------
Summary: Context Aware Config: latest caconfig-mock-plugin not
updated
Key: SLING-12418
URL: https://issues.apache.org/jira/browse/SLING-12418
Project: Sling
Issue Type: Improvement
Affects Versions: Context-Aware Configuration Mock Plugin 1.5.4
Reporter: Pablo Castelo
In the last caconfig-mock-plugin dependency the versions are not up to date.
* org.apache.sling.caconfig.api --> 1.1.2 (new 1.3.0)
* org.apache.sling.caconfig.spi --> 1.3.4 (new 1.4.0)
* org.apache.sling.caconfig.impl --> 1.4.14 (new 1.6.0)
This is causing an issue when the annotation @ContextAwareConfigurarion is used
on the code, since it needs at least impl 1.6.0 and spi 1.4.0.
[https://github.com/apache/sling-org-apache-sling-testing-caconfig-mock-plugin/blob/master/src/main/java/org/apache/sling/testing/mock/caconfig/ContextPlugins.java#L183C75-L183C108]
(based on the comment)
Causing:
{code:java}
[ERROR] Errors:
[ERROR] TitleTest.testPageTitleLTR » Runtime Before setup failed
(org.apache.sling.testing.mock.caconfig.ContextPlugins$1@5d5ae6aa): Service
reference type not found:
org.apache.sling.caconfig.management.multiplexer.ConfigurationInjectResourceDetectionStrategyMultiplexer
[ERROR] TitleTest.testPageTitleRTL » Runtime Before setup failed
(org.apache.sling.testing.mock.caconfig.ContextPlugins$1@5d5ae6aa): Service
reference type not found:
org.apache.sling.caconfig.management.multiplexer.ConfigurationInjectResourceDetectionStrategyMultiplexer{code}
My suggestion will be to release a new version with the latest versions to
solve the issue
As workaround, these two dependencies can be added to the pom
{code:java}
<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.caconfig.impl</artifactId>
<version>1.6.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.caconfig.spi</artifactId>
<version>1.4.0</version>
<scope>test</scope>
</dependency> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)