Skip to content

Commit

Permalink
Add logging for versioning based on environment variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
marchermans committed Jan 8, 2025
1 parent 8e47cf4 commit 965b57a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,10 @@ public Versioning(Project project) {
* @return The provider for the value of the environment variable.
*/
public Provider<String> environmentVariable(final String key) {
return project.getProviders().environmentVariable(key);
return project.getProviders().environmentVariable(key).map(version -> {
project.getLogger().warn("Using environment variable for versioning: {} = {}", key, version);
return version;
});
}

/**
Expand Down

0 comments on commit 965b57a

Please sign in to comment.