@@ -4,6 +4,11 @@ title: Tooling for your Hibernate projects.
4
4
project: tools
5
5
---
6
6
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
+
7
12
-# Center body
8
13
.feature-block
9
14
:asciidoc
@@ -67,8 +72,8 @@ project: tools
67
72
<version>1.0-SNAPSHOT</version>
68
73
69
74
<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>
72
77
</properties>
73
78
74
79
<dependencies>
@@ -92,7 +97,7 @@ project: tools
92
97
Having this in place, simply issuing:
93
98
[source]
94
99
-----
95
- mvn org.hibernate.tool:hibernate-tools-maven:${hibernate.version }:hbm2java
100
+ mvn org.hibernate.tool:hibernate-tools-maven:#{latest_stable_tools_version }:hbm2java
96
101
-----
97
102
from a command line prompt in the project folder will use all the default settings to generate Java classes for the
98
103
tables in `target/generated-sources/`.
@@ -124,15 +129,15 @@ project: tools
124
129
-----
125
130
plugins {
126
131
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 }'
128
133
}
129
134
130
135
repositories {
131
136
mavenCentral()
132
137
}
133
138
134
139
dependencies {
135
- implementation('com.h2database:h2:${h2.version }')
140
+ implementation('com.h2database:h2:#{sakila_h2_version }')
136
141
}
137
142
-----
138
143
@@ -162,9 +167,9 @@ project: tools
162
167
<property name="hibernate.tools.version" value=the-hibernate-tools-version-to-use/>
163
168
<property name="h2.version" value=the-h2-version-to-use/>
164
169
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 }"
166
171
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 }"
168
173
pathid="h2" inline="true"/>
169
174
170
175
<path id="classpath">
0 commit comments