Skip to content

Commit

Permalink
update to AEM Cloud dependencies with mixin for JSONP 1.1
Browse files Browse the repository at this point in the history
allow to set AEMaaCS version via maven property aem-cloud-dependencies.version
  • Loading branch information
stefanseifert committed Sep 16, 2024
1 parent 3324e3f commit 7197c63
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 13 deletions.
8 changes: 4 additions & 4 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@
<!-- Include AEM APIs in 'provided' scope to let the consuming project decide which to use -->
<dependency>
<groupId>com.adobe.aem</groupId>
<artifactId>uber-jar</artifactId>
<artifactId>aem-sdk-api</artifactId>
<scope>provided</scope>
</dependency>

Expand Down Expand Up @@ -276,9 +276,9 @@
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.wcm</groupId>
<artifactId>io.wcm.testing.logging.logback</artifactId>
<version>${logging-logback.version}</version>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.testing.logging-mock</artifactId>
<version>${logging-mock.version}</version>
<scope>test</scope>
</dependency>

Expand Down
5 changes: 5 additions & 0 deletions core/src/test/resources/simplelogger.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
org.slf4j.simpleLogger.defaultLogLevel=WARN

org.slf4j.simpleLogger.log.org.apache.sling.testing.mock.osgi=WARN
org.slf4j.simpleLogger.log.org.apache.sling.testing.mock.sling=WARN
org.slf4j.simpleLogger.log.io.wcm.testing.mock.aem=WARN
8 changes: 4 additions & 4 deletions junit4/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
<!-- (other versions of this APIs use other artifact ids) -->
<dependency>
<groupId>com.adobe.aem</groupId>
<artifactId>uber-jar</artifactId>
<artifactId>aem-sdk-api</artifactId>
<scope>provided</scope>
</dependency>

Expand All @@ -120,9 +120,9 @@
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.wcm</groupId>
<artifactId>io.wcm.testing.logging.logback</artifactId>
<version>${logging-logback.version}</version>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.testing.logging-mock</artifactId>
<version>${logging-mock.version}</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
5 changes: 5 additions & 0 deletions junit4/src/test/resources/simplelogger.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
org.slf4j.simpleLogger.defaultLogLevel=WARN

org.slf4j.simpleLogger.log.org.apache.sling.testing.mock.osgi=WARN
org.slf4j.simpleLogger.log.org.apache.sling.testing.mock.sling=WARN
org.slf4j.simpleLogger.log.io.wcm.testing.mock.aem=WARN
8 changes: 4 additions & 4 deletions junit5/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
<!-- (other versions of this APIs use other artifact ids) -->
<dependency>
<groupId>com.adobe.aem</groupId>
<artifactId>uber-jar</artifactId>
<artifactId>aem-sdk-api</artifactId>
<scope>provided</scope>
</dependency>

Expand Down Expand Up @@ -107,9 +107,9 @@
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.wcm</groupId>
<artifactId>io.wcm.testing.logging.logback</artifactId>
<version>${logging-logback.version}</version>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.testing.logging-mock</artifactId>
<version>${logging-mock.version}</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
5 changes: 5 additions & 0 deletions junit5/src/test/resources/simplelogger.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
org.slf4j.simpleLogger.defaultLogLevel=WARN

org.slf4j.simpleLogger.log.org.apache.sling.testing.mock.osgi=WARN
org.slf4j.simpleLogger.log.org.apache.sling.testing.mock.sling=WARN
org.slf4j.simpleLogger.log.io.wcm.testing.mock.aem=WARN
26 changes: 25 additions & 1 deletion parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,37 @@
<sling-mock-oak.version>4.0.0-1.62.0</sling-mock-oak.version>

<!-- Loggin in unit tests (testing dependency only) -->
<logging-logback.version>1.0.0</logging-logback.version>
<logging-mock.version>2.0.0</logging-mock.version>

<!-- Enable reproducible builds -->
<project.build.outputTimestamp>2024-08-26T09:22:32Z</project.build.outputTimestamp>

<!-- Test against this AEMaaCS version -->
<aem-cloud-dependencies.version>2024.8.17465.20240813T175259Z-240700.0000</aem-cloud-dependencies.version>

</properties>

<dependencyManagement>
<dependencies>

<dependency>
<groupId>io.wcm.maven</groupId>
<artifactId>io.wcm.maven.aem-cloud-dependencies-mixin-jsonp11</artifactId>
<version>1.0.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>io.wcm.maven</groupId>
<artifactId>io.wcm.maven.aem-cloud-dependencies</artifactId>
<version>${aem-cloud-dependencies.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>

</dependencies>
</dependencyManagement>

<build>
<plugins>

Expand Down

0 comments on commit 7197c63

Please sign in to comment.