File tree Expand file tree Collapse file tree 2 files changed +32
-1
lines changed
src/main/java/org/hibernate/tool/api/version Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 8282 </dependency >
8383 </dependencies >
8484
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+
85107</project >
Original file line number Diff line number Diff line change 22
33public interface Version {
44
5- final static String CURRENT_VERSION = "6.1.8-SNAPSHOT" ;
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+ }
615
716}
You can’t perform that action at this time.
0 commit comments