Skip to content

Commit 7b257f6

Browse files
committed
eliminate usage of Guava
1 parent 531ef69 commit 7b257f6

7 files changed

Lines changed: 8 additions & 11 deletions

File tree

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
import com.github.jknack.handlebars.Context;
3030
import com.github.jknack.handlebars.Options;
3131
import com.github.jknack.handlebars.Options.Buffer;
32-
import com.google.common.collect.ImmutableMap;
3332

3433
import io.wcm.devops.conga.generator.spi.handlebars.HelperPlugin;
3534
import io.wcm.devops.conga.generator.spi.handlebars.context.HelperContext;
@@ -69,7 +68,7 @@ public final Object apply(Object context, Options options, HelperContext pluginC
6968
for (CloudManagerConditional item : items) {
7069

7170
// config inside httpd.cloudManagerConditional is considered to be prefixed with "httpd.", so wrap it around here for merging
72-
Map<String, Object> httpdWrapper = ImmutableMap.of(HTTPD_KEY, item.getConfig());
71+
Map<String, Object> httpdWrapper = Map.of(HTTPD_KEY, item.getConfig());
7372
Map<String, Object> mergedModel = MapMerger.merge(httpdWrapper, (Map<String, Object>)currentContext.model());
7473

7574
// remove cloudManagerConditional after merging the models

conga-aem-plugin/src/main/java/io/wcm/devops/conga/plugins/aem/postprocessor/ContentPackagePostProcessor.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@
3131
import org.apache.commons.io.FilenameUtils;
3232
import org.slf4j.Logger;
3333

34-
import com.google.common.collect.ImmutableList;
35-
3634
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
3735
import io.wcm.devops.conga.generator.GeneratorException;
3836
import io.wcm.devops.conga.generator.plugins.postprocessor.AbstractPostProcessor;
@@ -115,7 +113,7 @@ public List<FileContext> apply(FileContext fileContext, PostProcessorContext con
115113
modelOptions.put("force", true);
116114
modelOptions.putAll(fileContext.getModelOptions());
117115

118-
return ImmutableList.of(new FileContext().file(zipFile).modelOptions(modelOptions));
116+
return List.of(new FileContext().file(zipFile).modelOptions(modelOptions));
119117
}
120118
catch (IOException ex) {
121119
throw new GeneratorException("Unable to post-process JSON data file: " + FileUtil.getCanonicalPath(file), ex);

parent/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@
5757
<dependency>
5858
<groupId>io.wcm.devops.conga</groupId>
5959
<artifactId>io.wcm.devops.conga.generator</artifactId>
60-
<version>1.16.5-SNAPSHOT</version>
60+
<version>1.17.0-SNAPSHOT</version>
6161
</dependency>
6262
<dependency>
6363
<groupId>io.wcm.devops.conga</groupId>
6464
<artifactId>conga-maven-plugin</artifactId>
65-
<version>1.16.5-SNAPSHOT</version>
65+
<version>1.17.0-SNAPSHOT</version>
6666
</dependency>
6767

6868
<dependency>

tooling/conga-aem-maven-plugin/src/it/example/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
<plugin>
7575
<groupId>io.wcm.devops.conga</groupId>
7676
<artifactId>conga-maven-plugin</artifactId>
77-
<version>1.16.5-SNAPSHOT</version>
77+
<version>1.17.0-SNAPSHOT</version>
7878
<extensions>true</extensions>
7979
<dependencies>
8080

tooling/conga-aem-maven-plugin/src/it/mixed-no-package-type/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
<plugin>
6868
<groupId>io.wcm.devops.conga</groupId>
6969
<artifactId>conga-maven-plugin</artifactId>
70-
<version>1.16.5-SNAPSHOT</version>
70+
<version>1.17.0-SNAPSHOT</version>
7171
<extensions>true</extensions>
7272
<dependencies>
7373

tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-aem65/parent/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@
321321
<plugin>
322322
<groupId>io.wcm.devops.conga</groupId>
323323
<artifactId>conga-maven-plugin</artifactId>
324-
<version>1.16.4</version>
324+
<version>1.17.0-SNAPSHOT</version>
325325
<dependencies>
326326
<dependency>
327327
<groupId>io.wcm.devops.conga.plugins</groupId>

tooling/conga-aem-maven-plugin/src/it/wcmio-archetype-cloud/parent/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@
268268
<plugin>
269269
<groupId>io.wcm.devops.conga</groupId>
270270
<artifactId>conga-maven-plugin</artifactId>
271-
<version>1.16.4</version>
271+
<version>1.17.0-SNAPSHOT</version>
272272
<dependencies>
273273
<dependency>
274274
<groupId>io.wcm.devops.conga.plugins</groupId>

0 commit comments

Comments
 (0)