Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanseifert committed Aug 15, 2022
2 parents 933986a + 59a4626 commit 81d14a9
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 16 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<img src="https://wcm.io/images/[email protected]"/> CONGA Plugin for AEM
======
[![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)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.wcm.devops.conga.plugins/io.wcm.devops.conga.plugins.aem/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.wcm.devops.conga.plugins/io.wcm.devops.conga.plugins.aem)
[![Maven Central](https://img.shields.io/maven-central/v/io.wcm.devops.conga.plugins/io.wcm.devops.conga.plugins.aem)](https://repo1.maven.org/maven2/io/wcm/devops/conga/plugins/io.wcm.devops.conga.plugins.aem)
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=wcm-io-devops_conga-aem-plugin&metric=coverage)](https://sonarcloud.io/summary/new_code?id=wcm-io-devops_conga-aem-plugin)

Documentation: https://devops.wcm.io/conga/plugins/aem/<br/>
Expand Down
9 changes: 9 additions & 0 deletions changes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@
xsi:schemaLocation="http://maven.apache.org/changes/1.0.0 https://maven.apache.org/plugins/maven-changes-plugin/xsd/changes-1.0.0.xsd">
<body>

<release version="2.18.4" date="2022-08-15">
<action type="update" dev="sseifert">
conga-aem-maven-plugin: Check bundle status before package manager install status as the latter may report errors if certain bundles are restarted.
</action>
<action type="fix" dev="sseifert">
conga-aem-maven-plugin: Ensure last modification dates for content package ZIP file entries are kept the same when rebuilding the "all" package.
</action>
</release>

<release version="2.18.2" date="2022-06-20">
<action type="fix" dev="sseifert">
conga-aem-maven-plugin: Add explicit handling for responses with invalid JSON payload for packager manager install status and bundle status calls.
Expand Down
4 changes: 2 additions & 2 deletions conga-aem-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@
<parent>
<groupId>io.wcm.devops.conga.plugins</groupId>
<artifactId>io.wcm.devops.conga.plugins.aem.parent</artifactId>
<version>2.18.2</version>
<version>2.18.4</version>
<relativePath>../parent/pom.xml</relativePath>
</parent>

<groupId>io.wcm.devops.conga.plugins</groupId>
<artifactId>io.wcm.devops.conga.plugins.aem</artifactId>
<version>2.18.2</version>
<version>2.18.4</version>
<packaging>jar</packaging>

<name>CONGA AEM Plugin</name>
Expand Down
4 changes: 2 additions & 2 deletions parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

<groupId>io.wcm.devops.conga.plugins</groupId>
<artifactId>io.wcm.devops.conga.plugins.aem.parent</artifactId>
<version>2.18.2</version>
<version>2.18.4</version>
<packaging>pom</packaging>

<name>CONGA AEM Plugin</name>
Expand Down Expand Up @@ -75,7 +75,7 @@
<dependency>
<groupId>io.wcm.tooling.commons</groupId>
<artifactId>io.wcm.tooling.commons.crx-packmgr-helper</artifactId>
<version>2.1.2</version>
<version>2.1.4</version>
</dependency>

<dependency>
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
<parent>
<groupId>io.wcm.devops.conga.plugins</groupId>
<artifactId>io.wcm.devops.conga.plugins.aem.parent</artifactId>
<version>2.18.2</version>
<version>2.18.4</version>
<relativePath>parent/pom.xml</relativePath>
</parent>

<groupId>io.wcm.devops.conga.plugins</groupId>
<artifactId>io.wcm.devops.conga.plugins.aem.root</artifactId>
<version>2.18.2</version>
<version>2.18.4</version>
<packaging>pom</packaging>

<name>CONGA AEM Plugin</name>
Expand Down
2 changes: 1 addition & 1 deletion src/site/markdown/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

wcm.io DevOps CONGA Plugin for [Adobe Experience Manager (AEM)][aem].

[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.wcm.devops.conga.plugins/io.wcm.devops.conga.plugins.aem/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.wcm.devops.conga.plugins/io.wcm.devops.conga.plugins.aem)
[![Maven Central](https://img.shields.io/maven-central/v/io.wcm.devops.conga.plugins/io.wcm.devops.conga.plugins.aem)](https://repo1.maven.org/maven2/io/wcm/devops/conga/plugins/io.wcm.devops.conga.plugins.aem)


### Documentation
Expand Down
6 changes: 3 additions & 3 deletions tooling/conga-aem-crypto-cli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@
<parent>
<groupId>io.wcm.devops.conga.plugins</groupId>
<artifactId>io.wcm.devops.conga.plugins.aem.parent</artifactId>
<version>2.18.2</version>
<version>2.18.4</version>
<relativePath>../../parent/pom.xml</relativePath>
</parent>

<groupId>io.wcm.devops.conga.plugins</groupId>
<artifactId>conga-aem-crypto-cli</artifactId>
<packaging>jar</packaging>
<version>2.18.2</version>
<version>2.18.4</version>

<name>CONGA AEM Crypto Command Line Interface</name>
<description>Command line tool to generate Crypto keys for AEM.</description>
Expand All @@ -42,7 +42,7 @@
<dependency>
<groupId>io.wcm.devops.conga.plugins</groupId>
<artifactId>io.wcm.devops.conga.plugins.aem</artifactId>
<version>2.18.2</version>
<version>2.18.4</version>
<scope>compile</scope>
<exclusions>
<!-- Exclude all deps - only crypto util classes are used -->
Expand Down
6 changes: 3 additions & 3 deletions tooling/conga-aem-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@
<parent>
<groupId>io.wcm.devops.conga.plugins</groupId>
<artifactId>io.wcm.devops.conga.plugins.aem.parent</artifactId>
<version>2.18.2</version>
<version>2.18.4</version>
<relativePath>../../parent/pom.xml</relativePath>
</parent>

<groupId>io.wcm.devops.conga.plugins</groupId>
<artifactId>conga-aem-maven-plugin</artifactId>
<packaging>maven-plugin</packaging>
<version>2.18.2</version>
<version>2.18.4</version>

<name>CONGA AEM Maven Plugin</name>
<description>wcm.io DevOps CONGA - CONfiguration GenerAtor Maven Plugin for AEM</description>
Expand Down Expand Up @@ -63,7 +63,7 @@
<dependency>
<groupId>io.wcm.devops.conga.plugins</groupId>
<artifactId>io.wcm.devops.conga.plugins.aem</artifactId>
<version>2.18.2</version>
<version>2.18.4</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ private List<TemporaryContentPackageFile> processContentPackage(ContentPackageFi
props.put(NAME_PACKAGE_TYPE, packageType);
}

ZipEntry zipOutEntry = new ZipEntry(zipInEntry.getName());
ZipEntry zipOutEntry = newZipEntry(zipInEntry);
zipOut.putNextEntry(zipOutEntry);
props.storeToXML(zipOut, null);
processedEntry = true;
Expand Down Expand Up @@ -589,7 +589,7 @@ else if (StringUtils.equals(FilenameUtils.getExtension(zipInEntry.getName()), "z

// otherwise transfer the binary data 1:1
if (!processedEntry) {
ZipEntry zipOutEntry = new ZipEntry(zipInEntry.getName());
ZipEntry zipOutEntry = newZipEntry(zipInEntry);
zipOut.putNextEntry(zipOutEntry);
IOUtils.copy(is, zipOut);
}
Expand All @@ -615,6 +615,17 @@ else if (StringUtils.equals(FilenameUtils.getExtension(zipInEntry.getName()), "z
return result;
}

private static ZipEntry newZipEntry(ZipEntry in) {
ZipEntry out = new ZipEntry(in.getName());
if (in.getCreationTime() != null) {
out.setCreationTime(in.getCreationTime());
}
if (in.getLastModifiedTime() != null) {
out.setLastModifiedTime(in.getLastModifiedTime());
}
return out;
}

/**
* Add dependency information to dependencies string in properties (if it does not exist already).
* @param props Properties
Expand Down

0 comments on commit 81d14a9

Please sign in to comment.