Skip to content

Commit

Permalink
Enable minisite mojo to override projectVersion/Name/ArtifactId - typ…
Browse files Browse the repository at this point in the history
…ically used to force a timestamp as projectVersion when version does not change
  • Loading branch information
rmannibucau committed Nov 10, 2022
1 parent eab6452 commit 0f13013
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -441,9 +441,9 @@ protected MiniSiteConfiguration createMiniSiteConfiguration(final ClassLoader lo
.skipRendering(skipRendering)
.customGems(customGems)
.requires(requires)
.projectVersion(project.getVersion())
.projectName(project.getName())
.projectArtifactId(project.getArtifactId())
.projectVersion(ofNullable(attributes).map(a -> a.get("projectVersion")).map(Object::toString).orElseGet(() -> project.getVersion()))
.projectName(ofNullable(attributes).map(a -> a.get("projectName")).map(Object::toString).orElseGet(() -> project.getName()))
.projectArtifactId(ofNullable(attributes).map(a -> a.get("projectArtifactId")).map(Object::toString).orElseGet(() -> project.getArtifactId()))
.asciidoctorConfiguration(this)
.asciidoctorPool((conf, fn) -> asciidoctor.withAsciidoc(conf, fn, asciidoctorExtensions))
.reverseBlogOrder(reverseBlogOrder)
Expand Down

0 comments on commit 0f13013

Please sign in to comment.