diff --git a/maven-plugin/src/main/java/org/wildfly/galleon/maven/AbstractFeaturePackBuildMojo.java b/maven-plugin/src/main/java/org/wildfly/galleon/maven/AbstractFeaturePackBuildMojo.java
index 0e4e1309..5833b6e1 100644
--- a/maven-plugin/src/main/java/org/wildfly/galleon/maven/AbstractFeaturePackBuildMojo.java
+++ b/maven-plugin/src/main/java/org/wildfly/galleon/maven/AbstractFeaturePackBuildMojo.java
@@ -684,11 +684,15 @@ String createYAMLChannelManifest(WildFlyFeaturePackBuild buildConfig) throws IOE
// add a stream for this feature pack
streams.add(new org.wildfly.channel.Stream(project.getGroupId(), project.getArtifactId(), project.getVersion()));
- ChannelManifest channelManifest = new ChannelManifest(format("Manifest for %s feature pack.", project.getArtifact()),
- project.getGroupId() + ":" + project.getArtifactId(),
- format("Generated by org.wildfly.galleon-plugins:wildfly-galleon-maven-plugin at %s", Clock.systemUTC().instant()),
- manifestRequirements,
- streams);
+ ChannelManifest channelManifest = new ChannelManifest.Builder()
+ .setSchemaVersion(ChannelManifestMapper.CURRENT_SCHEMA_VERSION)
+ .setName(format("Manifest for %s feature pack.", project.getArtifact()))
+ .setId(project.getGroupId() + ":" + project.getArtifactId())
+ .setDescription(format("Generated by org.wildfly.galleon-plugins:wildfly-galleon-maven-plugin at %s", Clock.systemUTC().instant()))
+ .addManifestRequirements(manifestRequirements.toArray(new ManifestRequirement[]{}))
+ .addStreams(streams.toArray(new org.wildfly.channel.Stream[]{}))
+ .build();
+
return ChannelManifestMapper.toYaml(channelManifest);
}
diff --git a/pom.xml b/pom.xml
index af5bf8c9..d59e7836 100644
--- a/pom.xml
+++ b/pom.xml
@@ -79,7 +79,7 @@
6.0.2.Final
1.5.0.Final
- 1.0.5.Final
+ 1.2.1.Final
24.0.0.Beta3
2.0.0.Final