-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added metadata for
org.hibernate:hibernate-core:5.6.14.Final
(#247)
- Loading branch information
Showing
34 changed files
with
2,522 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
metadata/org.hibernate/hibernate-core/5.6.14.Final/index.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[ | ||
"reflect-config.json", | ||
"resource-config.json" | ||
] |
1,232 changes: 1,232 additions & 0 deletions
1,232
metadata/org.hibernate/hibernate-core/5.6.14.Final/reflect-config.json
Large diffs are not rendered by default.
Oops, something went wrong.
53 changes: 53 additions & 0 deletions
53
metadata/org.hibernate/hibernate-core/5.6.14.Final/resource-config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"resources":{ | ||
"includes":[ | ||
{ | ||
"condition":{"typeReachable":"org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl"}, | ||
"pattern":"\\QMETA-INF/persistence.xml\\E" | ||
}, | ||
{ | ||
"condition":{"typeReachable":"org.hibernate.internal.util.ConfigHelper"}, | ||
"pattern":"\\Qhibernate.properties\\E" | ||
}, | ||
{ | ||
"condition":{"typeReachable":"org.hibernate.boot.jaxb.internal.stax.LocalXmlResourceResolver$DtdMapping"}, | ||
"pattern":"\\Qorg/hibernate/hibernate-configuration-3.0.dtd\\E" | ||
}, | ||
{ | ||
"condition":{"typeReachable":"org.hibernate.boot.jaxb.internal.stax.LocalXmlResourceResolver$DtdMapping"}, | ||
"pattern":"\\Qorg/hibernate/hibernate-mapping-3.0.dtd\\E" | ||
}, | ||
{ | ||
"condition":{"typeReachable":"org.hibernate.boot.jaxb.internal.stax.LocalXmlResourceResolver$NamespaceSchemaMapping"}, | ||
"pattern":"\\Qorg/hibernate/hibernate-mapping-4.0.xsd\\E" | ||
}, | ||
{ | ||
"condition":{"typeReachable":"org.hibernate.boot.jaxb.internal.stax.LocalXmlResourceResolver$NamespaceSchemaMapping"}, | ||
"pattern":"\\Qorg/hibernate/jpa/orm_2_0.xsd\\E" | ||
}, | ||
{ | ||
"condition":{"typeReachable":"org.hibernate.boot.jaxb.internal.stax.LocalXmlResourceResolver$NamespaceSchemaMapping"}, | ||
"pattern":"\\Qorg/hibernate/jpa/orm_2_1.xsd\\E" | ||
}, | ||
{ | ||
"condition":{"typeReachable":"org.hibernate.boot.jaxb.internal.stax.LocalXmlResourceResolver$NamespaceSchemaMapping"}, | ||
"pattern":"\\Qorg/hibernate/jpa/orm_2_2.xsd\\E" | ||
}, | ||
{ | ||
"condition":{"typeReachable":"org.hibernate.boot.jaxb.internal.stax.LocalXmlResourceResolver$NamespaceSchemaMapping"}, | ||
"pattern":"\\Qorg/hibernate/jpa/orm_3_0.xsd\\E" | ||
}, | ||
{ | ||
"condition":{"typeReachable":"org.hibernate.boot.xsd.LocalXsdResolver"}, | ||
"pattern":"\\Qorg/hibernate/jpa/persistence_2_0.xsd\\E" | ||
}, | ||
{ | ||
"condition":{"typeReachable":"org.hibernate.boot.jaxb.internal.stax.LocalXmlResourceResolver$NamespaceSchemaMapping"}, | ||
"pattern":"\\Qorg/hibernate/xsd/cfg/legacy-configuration-4.0.xsd\\E" | ||
}, | ||
{ | ||
"condition":{"typeReachable":"org.hibernate.boot.jaxb.internal.stax.LocalXmlResourceResolver$NamespaceSchemaMapping"}, | ||
"pattern":"\\Qorg/hibernate/xsd/mapping/legacy-mapping-4.0.xsd\\E" | ||
} | ||
]} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[ | ||
{ | ||
"latest": true, | ||
"metadata-version": "5.6.14.Final", | ||
"module": "org.hibernate:hibernate-core", | ||
"tested-versions": [ | ||
"5.6.14.Final" | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
tests/src/org.hibernate/hibernate-core/5.6.14.Final/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
gradlew.bat | ||
gradlew | ||
gradle/ | ||
build/ | ||
generated-metadata/ | ||
.run/ |
10 changes: 10 additions & 0 deletions
10
tests/src/org.hibernate/hibernate-core/5.6.14.Final/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
# Hibernate ORM | ||
|
||
The metadata has been generated by executing the following script: | ||
|
||
```bash | ||
./generate-metadata.sh | ||
``` | ||
|
||
The generated metadata can be found in the `generated-metadata` directory. |
58 changes: 58 additions & 0 deletions
58
tests/src/org.hibernate/hibernate-core/5.6.14.Final/build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/* | ||
* Copyright and related rights waived via CC0 | ||
* | ||
* You should have received a copy of the CC0 legalcode along with this | ||
* work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>. | ||
*/ | ||
|
||
plugins { | ||
id "org.graalvm.internal.tck" | ||
} | ||
|
||
String libraryVersion = tck.testedLibraryVersion.get() | ||
|
||
dependencies { | ||
testImplementation "org.hibernate:hibernate-core:$libraryVersion" | ||
testImplementation 'org.assertj:assertj-core:3.22.0' | ||
testImplementation 'com.h2database:h2:2.1.214' | ||
testImplementation 'javax.validation:validation-api:2.0.1.Final' | ||
testImplementation 'ch.qos.logback:logback-classic:1.4.5' | ||
} | ||
|
||
task updateGeneratedMetadata { | ||
doLast { | ||
final ant = new groovy.ant.AntBuilder() | ||
final metadataDir = project.projectDir.toString() + "/generated-metadata" | ||
|
||
// replace typeReachable value for entries generated by AdditionalMetadataTest test class | ||
ant.replace(file: metadataDir + "/reflect-config.json", | ||
token: "org_hibernate.hibernate_core.AdditionalMetadataTest", | ||
value: "org.hibernate.jpa.HibernatePersistenceProvider") | ||
|
||
// replace typeReachable value for entries generated by IdentifierGeneratorTest test class | ||
ant.replace(file: metadataDir + "/reflect-config.json", | ||
token: "org_hibernate.hibernate_core.IdentifierGeneratorTest", | ||
value: "org.hibernate.id.factory.internal.DefaultIdentifierGeneratorFactory") | ||
} | ||
} | ||
|
||
task deleteGeneratedMetadata(type: Delete) { | ||
delete files(project.projectDir.toString() + "/generated-metadata") | ||
} | ||
|
||
graalvmNative { | ||
agent { | ||
defaultMode = "conditional" | ||
modes { | ||
conditional { | ||
userCodeFilterPath = "metadata-conditions-filter.json" | ||
extraFilterPath = "metadata-extra-filter.json" | ||
} | ||
} | ||
metadataCopy { | ||
inputTaskNames.add("test") | ||
outputDirectories.add("generated-metadata") | ||
mergeWithExisting = true | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
tests/src/org.hibernate/hibernate-core/5.6.14.Final/generate-metadata.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env bash | ||
|
||
./gradlew deleteGeneratedMetadata | ||
./gradlew test --tests "org_hibernate.hibernate_core.H2DialectHibernateTest" -Pagent metadataCopy | ||
./gradlew test --tests "org_hibernate.hibernate_core.MariaDBDialectHibernateTest" -Pagent metadataCopy | ||
./gradlew test --tests "org_hibernate.hibernate_core.MSSQLDialectHibernateTest" -Pagent metadataCopy | ||
./gradlew test --tests "org_hibernate.hibernate_core.MySQLDialectHibernateTest" -Pagent metadataCopy | ||
./gradlew test --tests "org_hibernate.hibernate_core.OracleDialectHibernateTest" -Pagent metadataCopy | ||
./gradlew test --tests "org_hibernate.hibernate_core.PostgresDialectHibernateTest" -Pagent metadataCopy | ||
./gradlew test --tests "org_hibernate.hibernate_core.HibernateDialectTest" -Pagent metadataCopy | ||
./gradlew test --tests "org_hibernate.hibernate_core.AdditionalMetadataTest" -Pagent metadataCopy | ||
./gradlew test --tests "org_hibernate.hibernate_core.IdentifierGeneratorTest" -Pagent metadataCopy | ||
./gradlew test --tests "org_hibernate.hibernate_core.OptimizerTest" -Pagent metadataCopy | ||
./gradlew updateGeneratedMetadata |
2 changes: 2 additions & 0 deletions
2
tests/src/org.hibernate/hibernate-core/5.6.14.Final/gradle.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
library.version = 5.6.14.Final | ||
metadata.dir = org.hibernate/hibernate-core/5.6.14.Final/ |
7 changes: 7 additions & 0 deletions
7
tests/src/org.hibernate/hibernate-core/5.6.14.Final/metadata-conditions-filter.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"rules": [ | ||
{"includeClasses": "org.hibernate.**"}, | ||
{"includeClasses": "org_hibernate.hibernate_core.AdditionalMetadataTest"}, | ||
{"includeClasses": "org_hibernate.hibernate_core.IdentifierGeneratorTest"} | ||
] | ||
} |
18 changes: 18 additions & 0 deletions
18
tests/src/org.hibernate/hibernate-core/5.6.14.Final/metadata-extra-filter.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"rules": [ | ||
{"excludeClasses": "**"}, | ||
{"includeClasses": "org.hibernate.**"}, | ||
{"includeClasses": "[Lorg.hibernate.**"}, | ||
{"includeClasses": "antlr.CommonToken"}, | ||
{"includeClasses": "org_hibernate.hibernate_core.AdditionalMetadataTest"}, | ||
{"includeClasses": "org_hibernate.hibernate_core.IdentifierGeneratorTest"} | ||
], | ||
"regexRules": [ | ||
{"excludeClasses": "org.hibernate.internal.CoreMessageLogger_\\$logger_en.*"}, | ||
{"excludeClasses": "org.hibernate.annotations.common.util.impl.Log_\\$logger_en.*"}, | ||
{"excludeClasses": "org.hibernate.bytecode.enhance.spi.interceptor.BytecodeInterceptorLogging_\\$logger_en.*"}, | ||
{"excludeClasses": "org.hibernate.internal.EntityManagerMessageLogger_\\$logger_en.*"}, | ||
{"excludeClasses": "org.hibernate.internal.log.ConnectionAccessLogger_\\$logger_en.*"}, | ||
{"excludeClasses": "org.hibernate.internal.log.ConnectionPoolingLogger_\\$logger_en.*"} | ||
] | ||
} |
13 changes: 13 additions & 0 deletions
13
tests/src/org.hibernate/hibernate-core/5.6.14.Final/settings.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
pluginManagement { | ||
def tckPath = Objects.requireNonNullElse( | ||
System.getenv("GVM_TCK_TCKDIR"), | ||
"../../../../tck-build-logic" | ||
) | ||
includeBuild(tckPath) | ||
} | ||
|
||
plugins { | ||
id "org.graalvm.internal.tck-settings" version "1.0.0-SNAPSHOT" | ||
} | ||
|
||
rootProject.name = 'org.hibernate.hibernate-core_tests' |
Oops, something went wrong.