File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
src/main/java/me/qoomon/gradle/gitversioning Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 3
3
## 6.1.1
4
4
##### Fixes
5
5
- do not consider project properties for command options anymore
6
+ - prefer cli options e.g. ` -Dgit.ref=... ` over environment variables e.g. ` VERSIONING_GIT_REF=... ` )
6
7
7
8
## 6.1.0
8
9
##### Features
Original file line number Diff line number Diff line change @@ -613,7 +613,7 @@ private void normalizeConfig(GitVersioningPluginConfig config) {
613
613
}
614
614
615
615
private String getCommandOption (final String name ) {
616
- String value = null ;
616
+ String value = System . getProperty ( name ) ;
617
617
if (value == null ) {
618
618
String plainName = name .replaceFirst ("^versioning\\ ." , "" );
619
619
String environmentVariableName = "VERSIONING_"
@@ -622,9 +622,6 @@ private String getCommandOption(final String name) {
622
622
.toUpperCase ();
623
623
value = System .getenv (environmentVariableName );
624
624
}
625
- if (value == null ) {
626
- value = System .getProperty (name );
627
- }
628
625
return value ;
629
626
}
630
627
You can’t perform that action at this time.
0 commit comments