Skip to content

Commit

Permalink
Merge pull request #276 from jfdenise/WFGP-262-main
Browse files Browse the repository at this point in the history
Fix for WFGP-262, Make deployment of manifest optional
  • Loading branch information
jfdenise authored Dec 18, 2023
2 parents 43007f8 + ee6ed49 commit 1d38fd4
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@ static boolean isProvided(String module) {
property = "wildfly.feature.pack.require.channel.resolution")
protected WildFlyChannelResolutionMode wildflyChannelResolutionMode;

@Parameter(alias = "deploy-channel-manifest", required = false, defaultValue = "true",
property = "wildfly.feature.pack.deploy-channel-manifest")
protected boolean deployChannelManifest;

@Component
protected RepositorySystem repoSystem;

Expand Down Expand Up @@ -401,7 +405,9 @@ protected void buildFeaturePack(FeaturePackDescription.Builder fpBuilder, WildFl
debug("Attaching channel manifest definition %s as a project artifact", channelManifestTarget);
String channelManifest = createYAMLChannelManifest(buildConfig);
Files.write(channelManifestTarget, channelManifest.getBytes());
projectHelper.attachArtifact(project, ChannelManifest.EXTENSION, ChannelManifest.CLASSIFIER, channelManifestTarget.toFile());
if (deployChannelManifest) {
projectHelper.attachArtifact(project, ChannelManifest.EXTENSION, ChannelManifest.CLASSIFIER, channelManifestTarget.toFile());
}
}
}
}
Expand Down

0 comments on commit 1d38fd4

Please sign in to comment.