@@ -4,6 +4,11 @@ title: Tooling for your Hibernate projects.
44project: tools
55---
66
7+ - latest_stable_orm_version = site.projects['orm'].latest_stable_release.version
8+ - # This is an approximation, because we don't have Hibernate Tools metadata on the website.
9+ - latest_stable_tools_version = latest_stable_orm_version
10+ - sakila_h2_version = '2.3.232'
11+
712-# Center body
813.feature-block
914 :asciidoc
@@ -67,8 +72,8 @@ project: tools
6772 <version>1.0-SNAPSHOT</version>
6873
6974 <properties>
70- <hibernate-core.version>${hibernate.version }</hibernate-core.version>
71- <h2.version>${h2.version }</h2.version>
75+ <hibernate-core.version>#{latest_stable_orm_version }</hibernate-core.version>
76+ <h2.version>#{sakila_h2_version }</h2.version>
7277 </properties>
7378
7479 <dependencies>
@@ -92,7 +97,7 @@ project: tools
9297 Having this in place, simply issuing:
9398 [source]
9499 -----
95- mvn org.hibernate.tool:hibernate-tools-maven:${hibernate.version }:hbm2java
100+ mvn org.hibernate.tool:hibernate-tools-maven:#{latest_stable_tools_version }:hbm2java
96101 -----
97102 from a command line prompt in the project folder will use all the default settings to generate Java classes for the
98103 tables in `target/generated-sources/`.
@@ -124,15 +129,15 @@ project: tools
124129 -----
125130 plugins {
126131 id('application')
127- id('org.hibernate.tool.hibernate-tools-gradle') version '${hibernate-tools.version }'
132+ id('org.hibernate.tool.hibernate-tools-gradle') version '#{latest_stable_tools_version }'
128133 }
129134
130135 repositories {
131136 mavenCentral()
132137 }
133138
134139 dependencies {
135- implementation('com.h2database:h2:${h2.version }')
140+ implementation('com.h2database:h2:#{sakila_h2_version }')
136141 }
137142 -----
138143
@@ -162,9 +167,9 @@ project: tools
162167 <property name="hibernate.tools.version" value=the-hibernate-tools-version-to-use/>
163168 <property name="h2.version" value=the-h2-version-to-use/>
164169
165- <ivy:cachepath organisation="org.hibernate.tool" module="hibernate-tools-ant" revision="${hibernate.tools.version }"
170+ <ivy:cachepath organisation="org.hibernate.tool" module="hibernate-tools-ant" revision="#{latest_stable_tools_version }"
166171 pathid="hibernate-tools" inline="true"/>
167- <ivy:cachepath organisation="com.h2database" module="h2" revision="${h2.version }"
172+ <ivy:cachepath organisation="com.h2database" module="h2" revision="#{sakila_h2_version }"
168173 pathid="h2" inline="true"/>
169174
170175 <path id="classpath">
0 commit comments