-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HBX-2951: Backport automated releases to branch 6.6
- Use maven-injection-plugin to set the version string in the org.hibernate.tool.api.version.Version
- Loading branch information
1 parent
48a180b
commit 2ca6bc6
Showing
5 changed files
with
36 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 11 additions & 2 deletions
13
orm/src/main/java/org/hibernate/tool/api/version/Version.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
package org.hibernate.tool.api.version; | ||
|
||
public interface Version { | ||
|
||
final static String CURRENT_VERSION = "6.6.3-SNAPSHOT"; | ||
|
||
/** | ||
* @deprecated Use {@link #versionString()} instead. | ||
*/ | ||
@Deprecated | ||
final static String CURRENT_VERSION = versionString(); | ||
|
||
static String versionString() { | ||
// This implementation is replaced during the build with another one that returns the correct value. | ||
return "UNKNOWN"; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters