From cf70456f36d558a16a796672c5c07551720dc4c3 Mon Sep 17 00:00:00 2001 From: Tomas Bjerre Date: Tue, 26 Sep 2023 19:11:06 +0200 Subject: [PATCH] fix: trying to set property to use with Maven Release Plugin --- .../java/se/bjurr/gitchangelog/plugin/SemanticVersionMojo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/se/bjurr/gitchangelog/plugin/SemanticVersionMojo.java b/src/main/java/se/bjurr/gitchangelog/plugin/SemanticVersionMojo.java index dd1549c..8a5d6d6 100644 --- a/src/main/java/se/bjurr/gitchangelog/plugin/SemanticVersionMojo.java +++ b/src/main/java/se/bjurr/gitchangelog/plugin/SemanticVersionMojo.java @@ -81,7 +81,7 @@ public void execute() throws MojoExecutionException { new XmlModifier(pomFile).setVersion(nextVersion); // Set property that is read by Maven Release Plugin - this.project.getProperties().put("tag", nextVersion); + this.project.getProperties().setProperty("tag", nextVersion); } catch (final Exception e) { throw new MojoExecutionException(e.getMessage(), e); }