Skip to content

Commit a69ca30

Browse files
committed
HHH-16097 Cleanup unneeded o.h.userguide.model package and documentation.gradle dependencies
1 parent 46074a9 commit a69ca30

20 files changed

+8
-1165
lines changed

documentation/documentation.gradle

+3-43
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@ plugins {
1212
*/
1313

1414

15-
apply from: rootProject.file( 'gradle/java-module.gradle' )
15+
apply from: rootProject.file( 'gradle/module.gradle' )
1616
apply from: rootProject.file( 'gradle/releasable.gradle' )
1717

18-
apply plugin: 'org.hibernate.matrix-test'
1918
apply plugin: 'org.hibernate.orm.build.reports'
2019

2120
tasks.build.dependsOn 'buildDocs'
@@ -38,46 +37,16 @@ dependencies {
3837
reportAggregation project(':hibernate-ant')
3938
reportAggregation project(':hibernate-enhance-maven-plugin')
4039
reportAggregation project(':hibernate-jpamodelgen')
41-
42-
implementation project( ':hibernate-core' )
43-
44-
annotationProcessor project( ':hibernate-jpamodelgen' )
45-
46-
testImplementation project(':hibernate-testing')
47-
testImplementation project(':hibernate-envers')
48-
testImplementation project(':hibernate-spatial')
49-
testImplementation project(':hibernate-jcache')
50-
testImplementation project( path: ':hibernate-core', configuration: 'tests' )
51-
52-
testImplementation 'org.apache.commons:commons-lang3:3.4'
53-
testImplementation 'org.osgi:org.osgi.core:4.3.1'
54-
55-
testImplementation testLibs.mockito
56-
testImplementation testLibs.mockitoInline
57-
58-
testImplementation jakartaLibs.jaxbApi
59-
testImplementation jakartaLibs.jaxb
60-
testImplementation jakartaLibs.jsonb
61-
testImplementation libs.jacksonXml
62-
63-
testRuntimeOnly testLibs.wildFlyTxnClient
64-
testRuntimeOnly(libs.ehcache3) {
65-
capabilities {
66-
requireCapability 'org.ehcache.modules:ehcache-xml-jakarta'
67-
}
68-
}
69-
// Needed for JSON tests
70-
testRuntimeOnly libs.jackson
7140
}
7241

7342

7443
if ( project.ormVersion.isSnapshot ) {
7544
// only run the ci build tasks for SNAPSHOT versions
76-
task ciBuild( dependsOn: [clean, test] )
45+
task ciBuild( dependsOn: [clean] )
7746
tasks.release.enabled false
7847
}
7948
else {
80-
tasks.release.dependsOn clean, test
49+
tasks.release.dependsOn clean
8150
}
8251

8352
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -303,12 +272,3 @@ tasks.withType(AsciidoctorTask).all {
303272
backends 'html5'
304273
}
305274
}
306-
307-
// resources inherently exclude sources
308-
sourceSets.test.resources {
309-
setSrcDirs( ['src/test/java','src/test/resources'] )
310-
}
311-
312-
313-
checkstyleMain.exclude '**/org/hibernate/userguide/model/*'
314-

documentation/src/main/asciidoc/userguide/chapters/query/hql/QueryLanguage.adoc

+5-5
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,9 @@ A single HQL `update` statement might result in multiple SQL update statements e
197197
====
198198
[source, JAVA, indent=0]
199199
----
200-
include::{example-dir-hql}/../batch/BatchTest.java[tags=batch-bulk-jpql-update-example]
200+
include::{example-dir-hql}/../batch/BatchTests.java[tags=batch-bulk-jpql-update-example]
201201
202-
include::{example-dir-hql}/../batch/BatchTest.java[tags=batch-bulk-hql-update-example]
202+
include::{example-dir-hql}/../batch/BatchTests.java[tags=batch-bulk-hql-update-example]
203203
----
204204
====
205205

@@ -225,7 +225,7 @@ Adding the keyword `versioned`—writing `update versioned`—specifies
225225
====
226226
[source, JAVA, indent=0]
227227
----
228-
include::{example-dir-hql}/../batch/BatchTest.java[tags=batch-bulk-hql-update-version-example]
228+
include::{example-dir-hql}/../batch/BatchTests.java[tags=batch-bulk-hql-update-version-example]
229229
----
230230
====
231231

@@ -296,7 +296,7 @@ include::{example-dir-hql}/HQLTest.java[tags=hql-insert-example]
296296
297297
[source, SQL, indent=0]
298298
----
299-
include::{example-dir-hql}/../batch/BatchTest.java[tags=batch-bulk-hql-insert-example]
299+
include::{example-dir-hql}/../batch/BatchTests.java[tags=batch-bulk-hql-insert-example]
300300
----
301301
====
302302

@@ -865,7 +865,7 @@ This function truncates a date, time, or datetime to the temporal unit specified
865865
The syntax is `truncate(datetime, field)`. Supported temporal units are: `year`, `month`, `day`, `hour`, `minute` or `second`.
866866

867867
Truncating a date, time or datetime value translates to obtaining a value of the same type in which all temporal units smaller than `field` have been pruned.
868-
For hours, minutes and second this means setting them to `00`. For months and days, this means setting them to `01'.
868+
For hours, minutes and second this means setting them to `00`. For months and days, this means setting them to `01`.
869869

870870
[[hql-string-functions]]
871871
==== Functions for working with strings

documentation/src/main/java/org/hibernate/userguide/model/Account.java

-41
This file was deleted.

documentation/src/main/java/org/hibernate/userguide/model/AddressType.java

-17
This file was deleted.

documentation/src/main/java/org/hibernate/userguide/model/Call.java

-86
This file was deleted.

documentation/src/main/java/org/hibernate/userguide/model/CreditCardPayment.java

-27
This file was deleted.

documentation/src/main/java/org/hibernate/userguide/model/Image.java

-43
This file was deleted.

documentation/src/main/java/org/hibernate/userguide/model/Partner.java

-49
This file was deleted.

0 commit comments

Comments
 (0)