Skip to content

Commit baaff59

Browse files
use proper placeholder token style
1 parent adb1543 commit baaff59

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,11 @@ allprojects {
143143
task createVersionsFile(type: Copy) {
144144
from("src/main/java/net/devh/boot/grpc/common/util/Versions.java.template") {
145145
rename "Versions.java.template", "Versions.java"
146+
filter(org.apache.tools.ant.filters.ReplaceTokens, tokens: [
147+
versionStringPlaceholder: "v${projectVersion}".toString(),
148+
])
146149
}
147150
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-
])
151151
}
152152
compileJava.dependsOn createVersionsFile
153153

grpc-common-spring-boot/src/main/java/net/devh/boot/grpc/common/util/Versions.java.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public final class Versions {
2424
/**
2525
* A constant that defines, the current version of the library.
2626
*/
27-
public static final String PROJECT_VERSION = "VERSIONS_STRING_PLACEHOLDER";
27+
public static final String PROJECT_VERSION = "@versionStringPlaceholder@";
2828

2929
private Versions() {}
3030

0 commit comments

Comments
 (0)