File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
grpc-common-spring-boot/src/main/java/net/devh/boot/grpc/common/util Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -143,11 +143,11 @@ allprojects {
143
143
task createVersionsFile(type : Copy ) {
144
144
from(" src/main/java/net/devh/boot/grpc/common/util/Versions.java.template" ) {
145
145
rename " Versions.java.template" , " Versions.java"
146
+ filter(org.apache.tools.ant.filters.ReplaceTokens , tokens : [
147
+ versionStringPlaceholder : " v${ projectVersion} " . toString(),
148
+ ])
146
149
}
147
150
into " src/main/java/net/devh/boot/grpc/common/util"
148
- filter(org.apache.tools.ant.filters.ReplaceTokens , tokens : [
149
- ' VERSIONS_STRING_PLACEHOLDER' : " v${ projectVersion} " . toString(),
150
- ])
151
151
}
152
152
compileJava. dependsOn createVersionsFile
153
153
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ public final class Versions {
24
24
/**
25
25
* A constant that defines, the current version of the library.
26
26
*/
27
- public static final String PROJECT_VERSION = "VERSIONS_STRING_PLACEHOLDER ";
27
+ public static final String PROJECT_VERSION = "@versionStringPlaceholder@ ";
28
28
29
29
private Versions() {}
30
30
You can’t perform that action at this time.
0 commit comments