File tree Expand file tree Collapse file tree 2 files changed +14
-42
lines changed
grpc-common-spring-boot/src/main/java/net/devh/boot/grpc/common/util Expand file tree Collapse file tree 2 files changed +14
-42
lines changed Original file line number Diff line number Diff line change 72
72
buildRevision = versioning. info. commit
73
73
}
74
74
75
+ task createVersionFile {
76
+ new File (" ${ projectDir} /grpc-common-spring-boot/src/main/java/net/devh/boot/grpc/common/util/Versions.java" ). text = """
77
+ package net.devh.boot.grpc.common.util;
78
+ public final class Versions {
79
+ public static final String PROJECT_VERSION = "v${ projectVersion} ";
80
+ private Versions() {}
81
+ }
82
+ """
83
+ }
84
+
85
+ clean. doFirst {
86
+ delete " ${ projectDir} /grpc-common-spring-boot/src/main/java/net/devh/boot/grpc/common/util/Versions.java"
87
+ }
88
+
75
89
allprojects {
76
90
apply plugin : ' java'
77
91
apply plugin : ' idea'
@@ -224,17 +238,6 @@ allprojects { project ->
224
238
}
225
239
}
226
240
227
- File versionsFile = file(" ${ projectDir} /src/main/java/net/devh/boot/grpc/common/util/Versions.java" )
228
- task replaceVersion {
229
- ant. replaceregexp(
230
- file : versionsFile,
231
- match : ' VERSIONS_STRING_PLACEHOLDER' ,
232
- replace : " v${ projectVersion} " ,
233
- flags : ' g' ,
234
- byline : true ,
235
- )
236
- }
237
-
238
241
// Javadoc Task
239
242
javadoc {
240
243
dependsOn delombok
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments