File tree Expand file tree Collapse file tree 2 files changed +33
-2
lines changed
src/main/java/org/hibernate/tool/api/version Expand file tree Collapse file tree 2 files changed +33
-2
lines changed Original file line number Diff line number Diff line change 82
82
</dependency >
83
83
</dependencies >
84
84
85
+ <build >
86
+ <plugins >
87
+ <plugin >
88
+ <groupId >org.jboss.maven.plugins</groupId >
89
+ <artifactId >maven-injection-plugin</artifactId >
90
+ <configuration >
91
+ <bytecodeInjections >
92
+ <bytecodeInjection >
93
+ <expression >${project.version} </expression >
94
+ <targetMembers >
95
+ <methodBodyReturn >
96
+ <className >org.hibernate.tool.api.version.Version</className >
97
+ <methodName >versionString</methodName >
98
+ </methodBodyReturn >
99
+ </targetMembers >
100
+ </bytecodeInjection >
101
+ </bytecodeInjections >
102
+ </configuration >
103
+ </plugin >
104
+ </plugins >
105
+ </build >
106
+
85
107
</project >
Original file line number Diff line number Diff line change 1
1
package org .hibernate .tool .api .version ;
2
2
3
3
public interface Version {
4
-
5
- final static String CURRENT_VERSION = "6.4.11-SNAPSHOT" ;
4
+
5
+ /**
6
+ * @deprecated Use {@link #versionString()} instead.
7
+ */
8
+ @ Deprecated
9
+ final static String CURRENT_VERSION = versionString ();
10
+
11
+ static String versionString () {
12
+ // This implementation is replaced during the build with another one that returns the correct value.
13
+ return "UNKNOWN" ;
14
+ }
6
15
7
16
}
You can’t perform that action at this time.
0 commit comments