Skip to content

Commit

Permalink
Collect project properties from the userProperties map (#142)
Browse files Browse the repository at this point in the history
Signed-off-by: Jerome Prinet <[email protected]>
  • Loading branch information
jprinet authored Jun 30, 2023
1 parent 076473f commit b8b4f9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion release/changes.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@

- [FIX] Project properties not collected as custom values from Maven 4.0.0-alpha-06 ([related issue](https://issues.apache.org/jira/browse/MNG-7829))
2 changes: 1 addition & 1 deletion src/main/java/com/gradle/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ static Optional<String> envVariable(String name) {
}

static Optional<String> projectProperty(MavenSession mavenSession, String name) {
String value = mavenSession.getSystemProperties().getProperty(name);
String value = mavenSession.getUserProperties().getProperty(name);
return Optional.ofNullable(value);
}

Expand Down

0 comments on commit b8b4f9f

Please sign in to comment.