Skip to content

Commit 1450ccd

Browse files
committed
Merge branch 'develop'
2 parents 5733c4a + 7276713 commit 1450ccd

File tree

15 files changed

+135
-66
lines changed

15 files changed

+135
-66
lines changed

.github/workflows/maven-build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ jobs:
1515
runs-on: ${{ matrix.os }}
1616
strategy:
1717
matrix:
18-
java: [11, 17, 21]
18+
java: [17, 21]
1919
os: [ubuntu-latest]
2020
distribution: [temurin]
2121
include:
22-
- java: 11
22+
- java: 17
2323
os: windows-latest
2424
distribution: temurin
25-
- java: 11
25+
- java: 17
2626
os: macos-latest
2727
distribution: temurin
2828

.github/workflows/maven-deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ jobs:
1717

1818
steps:
1919
- name: Checkout code
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@v5
2121

2222
- name: Configure GIT
2323
run: |
2424
git config --global user.email "${{ secrets.GH_SITE_DEPLOY_EMAIL }}"
2525
git config --global user.name "${{ secrets.GH_SITE_DEPLOY_NAME }}"
2626
2727
- name: Setup JDK
28-
uses: actions/setup-java@v4
28+
uses: actions/setup-java@v5
2929
with:
3030
distribution: temurin
31-
java-version: 11
31+
java-version: 17
3232
cache: maven
3333

3434
- name: Build, verify, deploy, generate site

.github/workflows/release-from-tag.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
permissions:
1313
contents: write
1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@v5
1616
- uses: ncipollo/release-action@v1
1717
with:
1818
body: 'Changes: https://devops.wcm.io/conga/plugins/sling/changes.html'
Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
1-
# Licensed to the Apache Software Foundation (ASF) under one
2-
# or more contributor license agreements. See the NOTICE file
3-
# distributed with this work for additional information
4-
# regarding copyright ownership. The ASF licenses this file
5-
# to you under the Apache License, Version 2.0 (the
6-
# "License"); you may not use this file except in compliance
7-
# with the License. You may obtain a copy of the License at
8-
#
9-
# http://www.apache.org/licenses/LICENSE-2.0
10-
#
11-
# Unless required by applicable law or agreed to in writing,
12-
# software distributed under the License is distributed on an
13-
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14-
# KIND, either express or implied. See the License for the
15-
# specific language governing permissions and limitations
16-
# under the License.
17-
wrapperVersion=3.3.2
1+
wrapperVersion=3.3.4
182
distributionType=only-script
19-
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip
3+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.11/apache-maven-3.9.11-bin.zip

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<img src="https://wcm.io/images/[email protected]"/> CONGA Plugin for Apache Sling
22
======
3-
[![Build](https://github.com/wcm-io-devops/conga-sling-plugin/workflows/Build/badge.svg?branch=develop)](https://github.com/wcm-io-devops/conga-sling-plugin/actions?query=workflow%3ABuild+branch%3Adevelop)
3+
[![Build](https://github.com/wcm-io-devops/conga-sling-plugin/actions/workflows/maven-build.yml/badge.svg?branch=develop)](https://github.com/wcm-io-devops/conga-sling-plugin/actions?query=workflow%3ABuild+branch%3Adevelop)
44
[![Maven Central](https://img.shields.io/maven-central/v/io.wcm.devops.conga.plugins/io.wcm.devops.conga.plugins.sling)](https://repo1.maven.org/maven2/io/wcm/devops/conga/plugins/io.wcm.devops.conga.plugins.sling)
55
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=wcm-io-devops_conga-sling-plugin&metric=coverage)](https://sonarcloud.io/summary/new_code?id=wcm-io-devops_conga-sling-plugin)
66

changes.xml

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

27+
<release version="1.5.0" date="2025-09-25">
28+
<action type="update" dev="sseifert">
29+
Switch to Java 17.
30+
</action>
31+
</release>
32+
2733
<release version="1.4.4" date="2025-09-19">
2834
<action type="update" dev="sseifert">
2935
Update dependencies.

conga-sling-plugin/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
<parent>
2626
<groupId>io.wcm.devops.conga.plugins</groupId>
2727
<artifactId>io.wcm.devops.conga.plugins.sling.parent</artifactId>
28-
<version>1.4.4</version>
28+
<version>1.5.0</version>
2929
<relativePath>../parent/pom.xml</relativePath>
3030
</parent>
3131

3232
<groupId>io.wcm.devops.conga.plugins</groupId>
3333
<artifactId>io.wcm.devops.conga.plugins.sling</artifactId>
34-
<version>1.4.4</version>
34+
<version>1.5.0</version>
3535
<packaging>jar</packaging>
3636

3737
<name>CONGA Sling Plugin</name>
@@ -60,7 +60,7 @@
6060
<dependency>
6161
<groupId>io.wcm.devops.conga</groupId>
6262
<artifactId>io.wcm.devops.conga.generator</artifactId>
63-
<version>1.17.6</version>
63+
<version>1.18.0</version>
6464
<scope>compile</scope>
6565
</dependency>
6666

conga-sling-plugin/src/it/example/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<parent>
2727
<groupId>io.wcm.maven</groupId>
2828
<artifactId>io.wcm.maven.global-parent</artifactId>
29-
<version>66</version>
29+
<version>70</version>
3030
<relativePath/>
3131
</parent>
3232

@@ -45,7 +45,7 @@
4545
<plugin>
4646
<groupId>io.wcm.devops.conga</groupId>
4747
<artifactId>conga-maven-plugin</artifactId>
48-
<version>1.17.6</version>
48+
<version>1.18.0</version>
4949
<extensions>true</extensions>
5050
<dependencies>
5151

conga-sling-plugin/src/main/java/io/wcm/devops/conga/plugins/sling/util/JsonOsgiConfigUtil.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ private static Map<String, Object> convertListsToArrays(Map<String, Object> map)
8787
for (Map.Entry<String, Object> entry : map.entrySet()) {
8888
String key = entry.getKey();
8989
Object value = entry.getValue();
90-
if (value instanceof Collection) {
91-
Collection<?> collection = ((Collection)value);
90+
if (value instanceof Collection<?> collection) {
9291
value = collection.toArray((Object[])Array.newInstance(detectArrayType(collection), collection.size()));
9392
}
9493
else if (value instanceof Map) {

conga-sling-plugin/src/test/java/io/wcm/devops/conga/plugins/sling/postprocessor/ProvisioningOsgiConfigPostProcessorTest.java

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,10 @@ void testProvisioningExample() throws Exception {
8585

8686
// validate repoinit statements
8787
config = readConfig("org.apache.sling.jcr.repoinit.RepositoryInitializer-test.cfg.json");
88-
assertArrayEquals(new String[] {"create path /repoinit/test1\n" +
89-
"create path /repoinit/test2\n" }, (String[])config.get("scripts"));
88+
assertArrayEquals(new String[] { """
89+
create path /repoinit/test1
90+
create path /repoinit/test2
91+
""" }, (String[])config.get("scripts"));
9092

9193
config = readConfig("mode1/org.apache.sling.jcr.repoinit.RepositoryInitializer-test-mode1.cfg.json");
9294
assertArrayEquals(new String[] { "create service user mode1\n" }, (String[])config.get("scripts"));
@@ -97,11 +99,13 @@ void testProvisioningExample() throws Exception {
9799

98100
@Test
99101
void testSimpleConfig() throws Exception {
100-
final String PROVISIONING_FILE = "[feature name=test]\n" +
101-
"[configurations]\n" +
102-
"com.example.ServiceConfiguration\n"
103-
+ " bar=\"bar\""
104-
+ " foo=\"foo\"";
102+
final String PROVISIONING_FILE = """
103+
[feature name=test]
104+
[configurations]
105+
com.example.ServiceConfiguration
106+
bar="bar"
107+
foo="foo"
108+
""";
105109

106110
// post process provisioning example
107111
File provisioningFile = new File(targetDir, "simpleConfig.txt");
@@ -116,11 +120,12 @@ void testSimpleConfig() throws Exception {
116120

117121
@Test
118122
void testSimpleConfigWithNewline() throws Exception {
119-
final String PROVISIONING_FILE = "[feature name=test]\n" +
120-
"[configurations]\n" +
121-
"com.example.ServiceConfiguration\n"
122-
+ ""
123-
+ " foo=\"foo\"";
123+
final String PROVISIONING_FILE = """
124+
[feature name=test]
125+
[configurations]
126+
com.example.ServiceConfiguration
127+
foo="foo"
128+
""";
124129

125130
// post process provisioning example
126131
File provisioningFile = new File(targetDir, "simpleConfigWithNewline.txt");

0 commit comments

Comments
 (0)