File tree Expand file tree Collapse file tree 2 files changed +25
-2
lines changed 
src/main/java/org/hibernate/tool/api/version Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Original file line number Diff line number Diff line change 8787		</dependency >
8888	</dependencies >
8989
90+ 	<build >
91+ 		<plugins >
92+ 			<plugin >
93+ 				<groupId >org.jboss.maven.plugins</groupId >
94+ 				<artifactId >maven-injection-plugin</artifactId >
95+ 				<configuration >
96+ 					<bytecodeInjections >
97+ 						<bytecodeInjection >
98+ 							<expression >${project.version} </expression >
99+ 							<targetMembers >
100+ 								<constant >
101+ 									<className >org.hibernate.tool.api.version.Version</className >
102+ 									<fieldName >CURRENT_VERSION</fieldName >
103+ 								</constant >
104+ 							</targetMembers >
105+ 						</bytecodeInjection >
106+ 					</bytecodeInjections >
107+ 				</configuration >
108+ 			</plugin >
109+ 		</plugins >
110+ 	</build >
111+ 
90112</project >
Original file line number Diff line number Diff line change 11package  org .hibernate .tool .api .version ;
22
33public  interface  Version  {
4- 	
5- 	final  static  String  CURRENT_VERSION  = "7.0.0-SNAPSHOT" ;
4+ 
5+ 	// An actual version is set by the `maven-injection-plugin` during the build time. 
6+ 	final  static  String  CURRENT_VERSION  = "UNKNOWN" ;
67
78}
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments