Skip to content

Commit fbdebb3

Browse files
committed
Eliminate Guava
1 parent 7786066 commit fbdebb3

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

changes.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,13 @@
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.16.6" date="not released">
26+
<release version="1.17.0" date="not released">
2727
<action type="update" dev="sseifert" issue="57">
2828
Special handling for detecting ".cfg.json" file extensions.
2929
</action>
30+
<action type="remove" dev="sseifert" issue="59">
31+
Remove Guava dependency.
32+
</action>
3033
</release>
3134

3235
<release version="1.16.4" date="2023-10-18">

tooling/conga-maven-plugin/src/main/java/io/wcm/devops/conga/tooling/maven/plugin/AbstractCongaMojo.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import java.io.File;
3131
import java.io.IOException;
3232
import java.io.InputStream;
33+
import java.util.Arrays;
3334
import java.util.List;
3435
import java.util.Map;
3536
import java.util.SortedSet;
@@ -53,8 +54,6 @@
5354
import org.codehaus.plexus.archiver.jar.JarArchiver;
5455
import org.codehaus.plexus.archiver.jar.ManifestException;
5556

56-
import com.google.common.collect.ImmutableList;
57-
5857
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
5958
import io.wcm.devops.conga.generator.export.ModelExport;
6059
import io.wcm.devops.conga.resource.Resource;
@@ -200,7 +199,7 @@ protected ModelExport getModelExport() {
200199

201200
String[] nodeExportPlugins = StringUtils.split(this.modelExportNode, ",");
202201
if (nodeExportPlugins != null) {
203-
modelExport.setNode(ImmutableList.copyOf(nodeExportPlugins));
202+
modelExport.setNode(Arrays.asList(nodeExportPlugins));
204203
}
205204

206205
return modelExport;

tooling/conga-maven-plugin/src/main/java/io/wcm/devops/conga/tooling/maven/plugin/PackageMojo.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@
4343
import org.codehaus.plexus.archiver.ArchiverException;
4444
import org.codehaus.plexus.archiver.zip.ZipArchiver;
4545

46-
import com.google.common.collect.ImmutableSet;
47-
4846
import io.wcm.devops.conga.generator.util.FileUtil;
4947

5048
/**
@@ -83,7 +81,7 @@ public void execute() throws MojoExecutionException, MojoFailureException {
8381
private void buildGeneratedConfigurationAttachments() throws MojoExecutionException, MojoFailureException {
8482
Set<String> selectedEnvironments;
8583
if (environments != null && environments.length > 0) {
86-
selectedEnvironments = ImmutableSet.copyOf(environments);
84+
selectedEnvironments = Set.copyOf(Arrays.asList(environments));
8785
}
8886
else {
8987
selectedEnvironments = null;

tooling/conga-maven-plugin/src/main/java/io/wcm/devops/conga/tooling/maven/plugin/ValidateMojo.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@
4949
import org.sonatype.plexus.build.incremental.BuildContext;
5050
import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
5151

52-
import com.google.common.collect.ImmutableList;
53-
5452
import io.wcm.devops.conga.generator.GeneratorException;
5553
import io.wcm.devops.conga.generator.GeneratorOptions;
5654
import io.wcm.devops.conga.generator.UrlFileManager;
@@ -153,7 +151,7 @@ public void execute() throws MojoExecutionException, MojoFailureException {
153151
.logger(new MavenSlf4jLogFacade(getLog()));
154152

155153
// validate that all templates can be compiled
156-
HandlebarsManager handlebarsManager = new HandlebarsManager(ImmutableList.of(templateDir), pluginContextOptions);
154+
HandlebarsManager handlebarsManager = new HandlebarsManager(List.of(templateDir), pluginContextOptions);
157155
validateFiles(templateDir, templateDir, new TemplateValidator(templateDir, handlebarsManager));
158156

159157
// validate that roles reference existing templates

0 commit comments

Comments
 (0)