Skip to content

Commit

Permalink
update to AEM Cloud dependencies
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 Oct 13, 2023
1 parent 4119165 commit 0d28346
Show file tree
Hide file tree
Showing 7 changed files with 45 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 @@ -230,7 +230,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 @@ -281,9 +281,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
19 changes: 18 additions & 1 deletion parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,30 @@
<sling-mock-oak.version>3.1.10-1.44.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>2023-08-21T09:31:02Z</project.build.outputTimestamp>

<!-- Test against this AEMaaCS version -->
<aem-cloud-dependencies.version>2023.8.13099.20230810T160553Z-230702.0000</aem-cloud-dependencies.version>

</properties>

<dependencyManagement>
<dependencies>

<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 0d28346

Please sign in to comment.