Skip to content

Commit 065cdb4

Browse files
committed
Merge branch 'develop' into master
2 parents a08e8c7 + f2d4b8b commit 065cdb4

19 files changed

Lines changed: 323 additions & 188 deletions

File tree

.github/workflows/maven-build.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Build validation
2+
3+
name: Build
4+
5+
on:
6+
push:
7+
branches-ignore:
8+
- master
9+
- experimental/**
10+
pull_request:
11+
branches-ignore:
12+
- master
13+
- experimental/**
14+
workflow_dispatch:
15+
16+
jobs:
17+
build:
18+
19+
runs-on: ${{ matrix.os }}
20+
strategy:
21+
matrix:
22+
os: [ ubuntu-latest ]
23+
java: [8, 11]
24+
25+
steps:
26+
# Check out Git repository
27+
- name: Checkout code
28+
uses: actions/checkout@v2
29+
30+
# Set up environment with Java and Maven
31+
- name: Setup JDK
32+
uses: actions/setup-java@v1
33+
with:
34+
java-version: ${{ matrix.java }}
35+
36+
# Set up dependency cache
37+
- name: Cache local Maven repository
38+
uses: actions/cache@v2
39+
with:
40+
path: ~/.m2/repository
41+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
42+
restore-keys: |
43+
${{ runner.os }}-maven-
44+
45+
# Build & install (required for 2nd build: example)
46+
- name: Build and verify
47+
run: mvn -s ./.maven-settings.xml -Pcontinuous-integration -B -U clean install
48+
49+
# Build & verify example
50+
- name: Build and verify example
51+
run: mvn -s ./.maven-settings.xml -Pcontinuous-integration -B -U clean verify -f example
52+
53+
# Run code coverage check
54+
- name: Run code coverage check
55+
run: bash <(curl -s https://codecov.io/bash)

.github/workflows/maven-deploy.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Deploy snapshots to Sonatpe OSS repository and deploy site to GitHub Pages
2+
3+
name: Deploy
4+
5+
on:
6+
push:
7+
branches:
8+
- develop
9+
workflow_dispatch:
10+
11+
jobs:
12+
build:
13+
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
# Check out Git repository
18+
- name: Checkout code
19+
uses: actions/checkout@v2
20+
21+
# Configure GIT
22+
- name: Configure GIT
23+
run: |
24+
git config --global user.email "${{ secrets.GH_SITE_DEPLOY_EMAIL }}"
25+
git config --global user.name "${{ secrets.GH_SITE_DEPLOY_NAME }}"
26+
27+
# Set up environment with Java and Maven
28+
- name: Setup JDK
29+
uses: actions/setup-java@v1
30+
with:
31+
java-version: 1.8
32+
33+
# Set up dependency cache
34+
- name: Cache local Maven repository
35+
uses: actions/cache@v2
36+
with:
37+
path: ~/.m2/repository
38+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
39+
restore-keys: |
40+
${{ runner.os }}-maven-
41+
42+
# Build, deploy to ossrh, generate and stage site
43+
- name: Build, verify, deploy, generate site
44+
env:
45+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
46+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
47+
run: mvn -s ./.maven-settings.xml -Pcontinuous-integration -B -U clean deploy site
48+
49+
# Deploy site to Github Pages
50+
- name: Stage and deploy site
51+
run: >
52+
mvn -s ./.maven-settings.xml -Pcontinuous-integration -B site:stage scm-publish:publish-scm
53+
-Dscmpublish.checkinComment="Maven site: ${{ github.repository }}"
54+
-Dusername=${{ secrets.GH_SITE_DEPLOY_USERNAME }}
55+
-Dpassword=${{ secrets.GH_SITE_DEPLOY_PAT }}
Lines changed: 10 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,11 @@
3737
<enabled>true</enabled>
3838
<updatePolicy>never</updatePolicy>
3939
</releases>
40+
<!-- workaround for https://github.com/mojohaus/build-helper-maven-plugin/issues/108
4041
<snapshots>
4142
<enabled>false</enabled>
4243
</snapshots>
43-
</repository>
44-
45-
<repository>
46-
<id>adobe-public-releases</id>
47-
<name>Adobe Public Repository</name>
48-
<url>https://repo.adobe.com/nexus/content/groups/public/</url>
49-
<releases>
50-
<enabled>true</enabled>
51-
<updatePolicy>never</updatePolicy>
52-
</releases>
53-
<snapshots>
54-
<enabled>false</enabled>
55-
</snapshots>
44+
-->
5645
</repository>
5746

5847
<repository>
@@ -111,19 +100,6 @@
111100
</snapshots>
112101
</pluginRepository>
113102

114-
<pluginRepository>
115-
<id>adobe-public-releases</id>
116-
<name>Adobe Public Repository</name>
117-
<url>https://repo.adobe.com/nexus/content/groups/public/</url>
118-
<releases>
119-
<enabled>true</enabled>
120-
<updatePolicy>never</updatePolicy>
121-
</releases>
122-
<snapshots>
123-
<enabled>false</enabled>
124-
</snapshots>
125-
</pluginRepository>
126-
127103
<pluginRepository>
128104
<id>wcm-io-apache-intermediate-release</id>
129105
<url>https://wcm.io/maven/repositories/apache-intermediate-release</url>
@@ -173,4 +149,12 @@
173149
<activeProfile>default</activeProfile>
174150
</activeProfiles>
175151

152+
<servers>
153+
<server>
154+
<id>ossrh</id>
155+
<username>${env.SONATYPE_USERNAME}</username>
156+
<password>${env.SONATYPE_PASSWORD}</password>
157+
</server>
158+
</servers>
159+
176160
</settings>

.travis.yml

Lines changed: 0 additions & 58 deletions
This file was deleted.

Jenkinsfile

Lines changed: 0 additions & 37 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
<img src="https://wcm.io/images/favicon-16@2x.png"/> CONGA Plugin for AEM
22
======
3-
[![Build Status](https://travis-ci.com/wcm-io-devops/conga-aem-plugin.png?branch=develop)](https://travis-ci.com/wcm-io-devops/conga-aem-plugin)
3+
[![Build](https://github.com/wcm-io-devops/conga-aem-plugin/workflows/Build/badge.svg?branch=develop)](https://github.com/wcm-io-devops/conga-aem-plugin/actions?query=workflow%3ABuild+branch%3Adevelop)
44
[![Code Coverage](https://codecov.io/gh/wcm-io-devops/conga-aem-plugin/branch/develop/graph/badge.svg)](https://codecov.io/gh/wcm-io-devops/conga-aem-plugin)
55

66
Documentation: https://devops.wcm.io/conga/plugins/aem/<br/>
77
Issues: https://wcm-io.atlassian.net/projects/WDCONGA<br/>
88
Wiki: https://wcm-io.atlassian.net/wiki/<br/>
9-
Continuous Integration: https://travis-ci.com/conga-aem-plugin<br/>
9+
Continuous Integration: https://github.com/wcm-io-devops/conga-aem-plugin/actions<br/>
1010
Commercial support: https://wcm.io/commercial-support.html
1111

1212

1313
## Build from sources
1414

1515
If you want to build from sources make sure you have configured all [Maven Repositories](https://devops.wcm.io/maven.html) in your settings.xml.
1616

17-
See [Travis Maven settings.xml](https://github.com/conga-aem-plugin/blob/master/.travis.maven-settings.xml) for an example with a full configuration.
17+
See [Maven Settings](https://github.com/wcm-io-devops/conga-aem-plugin/blob/develop/.maven-settings.xml) for an example with a full configuration.
1818

1919
Then you can build using
2020

changes.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@
2323
xsi:schemaLocation="http://maven.apache.org/changes/1.0.0 https://maven.apache.org/plugins/maven-changes-plugin/xsd/changes-1.0.0.xsd">
2424
<body>
2525

26+
<release version="1.14.2" date="2021-03-15">
27+
<action type="fix" dev="dtschentscher">
28+
Fix parsing content package properties with numeric values.
29+
</action>
30+
</release>
31+
2632
<release version="1.14.0" date="2020-12-21">
2733
<action type="add" dev="sseifert">
2834
conga-aem-maven-plugin:cloudmanager-all-package: Add "singlePackage" flag to alternatively build single "all" content package for all environments and nodes.

conga-aem-plugin/pom.xml

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@
2323
<modelVersion>4.0.0</modelVersion>
2424

2525
<parent>
26-
<groupId>io.wcm.devops</groupId>
27-
<artifactId>io.wcm.devops.parent_toplevel</artifactId>
28-
<version>1.2.4</version>
29-
<relativePath />
26+
<groupId>io.wcm.devops.conga.plugins</groupId>
27+
<artifactId>io.wcm.devops.conga.plugins.aem.parent</artifactId>
28+
<version>1.14.2</version>
29+
<relativePath>../parent/pom.xml</relativePath>
3030
</parent>
3131

3232
<groupId>io.wcm.devops.conga.plugins</groupId>
3333
<artifactId>io.wcm.devops.conga.plugins.aem</artifactId>
34-
<version>1.14.0</version>
34+
<version>1.14.2</version>
3535
<packaging>jar</packaging>
3636

3737
<name>CONGA AEM Plugin</name>
@@ -45,7 +45,7 @@
4545
</scm>
4646

4747
<properties>
48-
<site.url.module.prefix>conga/plugins/aem/conga-aem-plugin</site.url.module.prefix>
48+
<site.url.module.prefix>conga-aem-plugin</site.url.module.prefix>
4949
</properties>
5050

5151
<dependencies>
@@ -101,13 +101,11 @@
101101
<dependency>
102102
<groupId>io.wcm.tooling.commons</groupId>
103103
<artifactId>io.wcm.tooling.commons.content-package-builder</artifactId>
104-
<version>1.5.4</version>
105104
<scope>compile</scope>
106105
</dependency>
107106
<dependency>
108107
<groupId>io.wcm.tooling.commons</groupId>
109108
<artifactId>io.wcm.tooling.commons.crx-packmgr-helper</artifactId>
110-
<version>1.7.4</version>
111109
<scope>compile</scope>
112110
</dependency>
113111

@@ -223,12 +221,25 @@
223221
</plugin>
224222

225223
</plugins>
224+
<pluginManagement>
225+
<plugins>
226+
227+
<plugin>
228+
<groupId>org.apache.maven.plugins</groupId>
229+
<artifactId>maven-site-plugin</artifactId>
230+
<configuration>
231+
<topSiteURL>${site.deploy.url}</topSiteURL>
232+
</configuration>
233+
</plugin>
234+
235+
</plugins>
236+
</pluginManagement>
226237
</build>
227238

228239
<distributionManagement>
229240
<site>
230241
<id>${site.deploy.id}</id>
231-
<url>${site.deploy.url}${site.url.module.prefix}</url>
242+
<url>${site.deploy.url}/${site.url.module.prefix}</url>
232243
</site>
233244
</distributionManagement>
234245

conga-aem-plugin/src/main/java/io/wcm/devops/conga/plugins/aem/handlebars/helper/AemCryptoEncryptHelper.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import java.security.GeneralSecurityException;
2929
import java.security.Key;
3030
import java.util.Map;
31+
import java.util.Objects;
3132

3233
import org.apache.commons.io.IOUtils;
3334
import org.apache.commons.lang3.BooleanUtils;
@@ -72,7 +73,7 @@ public Object apply(Object context, Options options, HelperContext pluginContext
7273
boolean cryptoSkip = false;
7374
Map<String, Object> aemPluginConfig = pluginContext.getGenericPluginConfig().get(PLUGIN_NAME);
7475
if (aemPluginConfig != null) {
75-
cryptoAesKeyUrl = (String)aemPluginConfig.get(PARAMETER_CRYPTO_AES_KEY_URL);
76+
cryptoAesKeyUrl = Objects.toString(aemPluginConfig.get(PARAMETER_CRYPTO_AES_KEY_URL), null);
7677
Object cryptoSkipObject = aemPluginConfig.get(PARAMETER_CRYPTO_SKIP);
7778
if (cryptoSkipObject != null) {
7879
if (cryptoSkipObject instanceof Boolean) {

0 commit comments

Comments
 (0)