Skip to content

Commit 8cf24c9

Browse files
authored
Added metadata for org.hibernate.orm:hibernate-core:6.2.0.Final (#263)
* Adding metadata for hibernate 6.2.0.Final * Adding metadata for hibernate 6.2.0.Final * Adding metadata for hibernate 6.2.0.Final * Adding metadata for hibernate 6.2.0.Final * Adding metadata for hibernate 6.2.0.Final * Adding metadata for hibernate 6.2.0.Final * Adding metadata for hibernate 6.2.0.Final * Modified hibernate-core index.json file
1 parent 32c16d8 commit 8cf24c9

33 files changed

+2073
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[
2+
"reflect-config.json",
3+
"resource-config.json"
4+
]

metadata/org.hibernate.orm/hibernate-core/6.2.0.Final/reflect-config.json

Lines changed: 844 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"resources":{
3+
"includes":[
4+
{
5+
"condition":{"typeReachable":"org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl"},
6+
"pattern":"\\QMETA-INF/persistence.xml\\E"
7+
},
8+
{
9+
"condition":{"typeReachable":"org.hibernate.internal.util.ConfigHelper"},
10+
"pattern":"\\Qhibernate.properties\\E"
11+
},
12+
{
13+
"condition":{"typeReachable":"org.hibernate.boot.jaxb.internal.stax.LocalSchemaLocator"},
14+
"pattern":"\\Qorg/hibernate/hibernate-configuration-3.0.dtd\\E"
15+
},
16+
{
17+
"condition":{"typeReachable":"org.hibernate.boot.jaxb.internal.stax.LocalSchemaLocator"},
18+
"pattern":"\\Qorg/hibernate/hibernate-mapping-3.0.dtd\\E"
19+
},
20+
{
21+
"condition":{"typeReachable":"org.hibernate.boot.xsd.LocalXsdResolver"},
22+
"pattern":"\\Qorg/hibernate/jpa/persistence_2_0.xsd\\E"
23+
}
24+
]}
25+
}

metadata/org.hibernate.orm/hibernate-core/index.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
[
22
{
33
"latest": true,
4+
"metadata-version": "6.2.0.Final",
5+
"module": "org.hibernate.orm:hibernate-core",
6+
"tested-versions": [
7+
"6.2.0.Final"
8+
]
9+
},
10+
{
411
"metadata-version": "6.1.1.Final",
512
"module": "org.hibernate.orm:hibernate-core",
613
"tested-versions": [

tests/src/index.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,17 @@
8787
}
8888
]
8989
},
90+
{
91+
"test-project-path": "org.hibernate.orm/hibernate-core/6.2.0.Final",
92+
"libraries": [
93+
{
94+
"name": "org.hibernate.orm:hibernate-core",
95+
"versions": [
96+
"6.2.0.Final"
97+
]
98+
}
99+
]
100+
},
90101
{
91102
"test-project-path": "org.hibernate.orm/hibernate-envers/6.1.1.Final",
92103
"libraries": [
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
gradlew.bat
2+
gradlew
3+
gradle/
4+
build/
5+
generated-metadata/
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
# Hibernate ORM
3+
4+
The metadata has been generated by executing the following script:
5+
6+
```bash
7+
./generate-metadata.sh
8+
```
9+
10+
The generated metadata can be found in the `generated-metadata` directory.
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
/*
2+
* Copyright and related rights waived via CC0
3+
*
4+
* You should have received a copy of the CC0 legalcode along with this
5+
* work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
6+
*/
7+
8+
plugins {
9+
id "org.graalvm.internal.tck"
10+
}
11+
12+
String libraryVersion = tck.testedLibraryVersion.get()
13+
14+
dependencies {
15+
testImplementation "org.hibernate.orm:hibernate-core:$libraryVersion"
16+
testImplementation 'org.assertj:assertj-core:3.22.0'
17+
testImplementation 'com.h2database:h2:2.1.214'
18+
testImplementation 'jakarta.validation:jakarta.validation-api:3.0.2'
19+
testImplementation 'org.postgresql:postgresql:42.6.0'
20+
testImplementation 'com.oracle.database.jdbc:ojdbc11:21.9.0.0'
21+
22+
testImplementation 'ch.qos.logback:logback-classic:1.4.5'
23+
}
24+
25+
task updateGeneratedMetadata {
26+
doLast {
27+
final ant = new groovy.ant.AntBuilder()
28+
final metadataDir = project.projectDir.toString() + "/generated-metadata"
29+
30+
// replace typeReachable value for entries generated by IdentifierGeneratorTest test class
31+
ant.replace(file: metadataDir + "/reflect-config.json",
32+
token: "org_hibernate_orm.hibernate_core.IdentifierGeneratorTest",
33+
value: "org.hibernate.id.factory.internal.StandardIdentifierGeneratorFactory")
34+
}
35+
}
36+
37+
task deleteGeneratedMetadata(type: Delete) {
38+
delete files(project.projectDir.toString() + "/generated-metadata")
39+
}
40+
41+
graalvmNative {
42+
agent {
43+
defaultMode = "conditional"
44+
modes {
45+
conditional {
46+
userCodeFilterPath = "metadata-conditions-filter.json"
47+
extraFilterPath = "metadata-extra-filter.json"
48+
}
49+
}
50+
metadataCopy {
51+
inputTaskNames.add("test")
52+
outputDirectories.add("generated-metadata")
53+
mergeWithExisting = true
54+
}
55+
}
56+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env bash
2+
3+
./gradlew deleteGeneratedMetadata
4+
./gradlew test --tests "org_hibernate_orm.hibernate_core.H2DialectHibernateTest" -Pagent metadataCopy
5+
./gradlew test --tests "org_hibernate_orm.hibernate_core.MariaDBDialectHibernateTest" -Pagent metadataCopy
6+
./gradlew test --tests "org_hibernate_orm.hibernate_core.MSSQLDialectHibernateTest" -Pagent metadataCopy
7+
./gradlew test --tests "org_hibernate_orm.hibernate_core.MySQLDialectHibernateTest" -Pagent metadataCopy
8+
./gradlew test --tests "org_hibernate_orm.hibernate_core.OracleDialectHibernateTest" -Pagent metadataCopy
9+
./gradlew test --tests "org_hibernate_orm.hibernate_core.PostgresDialectHibernateTest" -Pagent metadataCopy
10+
./gradlew test --tests "org_hibernate_orm.hibernate_core.HibernateDialectTest" -Pagent metadataCopy
11+
./gradlew test --tests "org_hibernate_orm.hibernate_core.UrlMessageBundleTest" -Pagent metadataCopy
12+
./gradlew test --tests "org_hibernate_orm.hibernate_core.IdentifierGeneratorTest" -Pagent metadataCopy
13+
./gradlew test --tests "org_hibernate_orm.hibernate_core.OptimizerTest" -Pagent metadataCopy
14+
./gradlew updateGeneratedMetadata
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
library.version = 6.2.0.Final
2+
metadata.dir = org.hibernate.orm/hibernate-core/6.2.0.Final/

0 commit comments

Comments
 (0)