Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add reflection metadata for Flyway 10.20.1 #571

Merged
merged 1 commit into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions metadata/org.flywaydb/flyway-core/10.20.1/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[
"reflect-config.json",
"resource-config.json"
]
247 changes: 247 additions & 0 deletions metadata/org.flywaydb/flyway-core/10.20.1/reflect-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,247 @@
[
{
"name": "org.flywaydb.core.api.migration.baseline.BaselineMigrationConfigurationExtension",
"condition": {
"typeReachable": "org.flywaydb.core.api.configuration.ClassicConfiguration"
},
"allDeclaredFields": true
},
{
"name": "org.flywaydb.core.api.migration.baseline.BaselineMigrationConfigurationExtension",
"queryAllDeclaredMethods": true,
"condition": {
"typeReachable": "org.flywaydb.core.extensibility.ConfigurationExtension"
},
"allDeclaredFields": true,
"queryAllDeclaredConstructors": true,
"methods": [
{
"name": "<init>",
"parameterTypes": [
]
},
{
"name": "getBaselineMigrationPrefix",
"parameterTypes": [
]
},
{
"name": "setBaselineMigrationPrefix",
"parameterTypes": [
"java.lang.String"
]
}
]
},
{
"name": "org.flywaydb.core.extensibility.ConfigurationExtension",
"queryAllDeclaredMethods": true,
"condition": {
"typeReachable": "org.flywaydb.core.extensibility.ConfigurationExtension"
}
},
{
"name": "org.flywaydb.core.extensibility.Plugin",
"queryAllDeclaredMethods": true,
"condition": {
"typeReachable": "org.flywaydb.core.extensibility.ConfigurationExtension"
}
},
{
"name": "org.flywaydb.core.internal.command.clean.CleanModeConfigurationExtension",
"queryAllDeclaredMethods": true,
"condition": {
"typeReachable": "org.flywaydb.core.extensibility.ConfigurationExtension"
},
"allDeclaredFields": true,
"queryAllDeclaredConstructors": true,
"methods": [
{
"name": "<init>",
"parameterTypes": [
]
},
{
"name": "getClean",
"parameterTypes": [
]
},
{
"name": "setClean",
"parameterTypes": [
"org.flywaydb.core.internal.command.clean.CleanModel"
]
}
]
},
{
"name": "org.flywaydb.core.internal.command.clean.CleanModel",
"queryAllDeclaredMethods": true,
"condition": {
"typeReachable": "org.flywaydb.core.extensibility.ConfigurationExtension"
},
"allDeclaredFields": true,
"queryAllDeclaredConstructors": true
},
{
"name": "org.flywaydb.core.internal.command.clean.SchemaModel",
"queryAllDeclaredMethods": true,
"condition": {
"typeReachable": "org.flywaydb.core.extensibility.ConfigurationExtension"
},
"allDeclaredFields": true,
"queryAllDeclaredConstructors": true
},
{
"name": "org.flywaydb.core.internal.configuration.extensions.DeployScriptFilenameConfigurationExtension",
"queryAllDeclaredMethods": true,
"condition": {
"typeReachable": "org.flywaydb.core.extensibility.ConfigurationExtension"
},
"allDeclaredFields": true,
"queryAllDeclaredConstructors": true,
"methods": [
{
"name": "<init>",
"parameterTypes": [
]
},
{
"name": "getScriptFilename",
"parameterTypes": [
]
},
{
"name": "setScriptFilename",
"parameterTypes": [
"java.lang.String"
]
}
]
},
{
"name": "org.flywaydb.core.internal.configuration.extensions.PrepareScriptFilenameConfigurationExtension",
"queryAllDeclaredMethods": true,
"condition": {
"typeReachable": "org.flywaydb.core.extensibility.ConfigurationExtension"
},
"allDeclaredFields": true,
"queryAllDeclaredConstructors": true,
"methods": [
{
"name": "<init>",
"parameterTypes": [
]
},
{
"name": "getScriptFilename",
"parameterTypes": [
]
},
{
"name": "setScriptFilename",
"parameterTypes": [
"java.lang.String"
]
}
]
},
{
"name": "org.flywaydb.core.internal.logging.apachecommons.ApacheCommonsLogCreator",
"condition": {
"typeReachable": "org.flywaydb.core.internal.util.ClassUtils"
},
"methods": [
{
"name": "<init>",
"parameterTypes": [
]
}
]
},
{
"name": "org.flywaydb.core.internal.logging.log4j2.Log4j2LogCreator",
"condition": {
"typeReachable": "org.flywaydb.core.internal.util.ClassUtils"
},
"methods": [
{
"name": "<init>",
"parameterTypes": [
]
}
]
},
{
"name": "org.flywaydb.core.internal.logging.slf4j.Slf4jLogCreator",
"condition": {
"typeReachable": "org.flywaydb.core.internal.util.ClassUtils"
},
"methods": [
{
"name": "<init>",
"parameterTypes": [
]
}
]
},
{
"name": "org.flywaydb.core.internal.proprietaryStubs.LicensingConfigurationExtensionStub",
"condition": {
"typeReachable": "org.flywaydb.core.api.configuration.ClassicConfiguration"
},
"allDeclaredFields": true
},
{
"name": "org.flywaydb.core.internal.proprietaryStubs.PATTokenConfigurationExtensionStub",
"condition": {
"typeReachable": "org.flywaydb.core.api.configuration.ClassicConfiguration"
},
"allDeclaredFields": true
},
{
"name": "org.flywaydb.core.internal.publishing.PublishingConfigurationExtension",
"condition": {
"typeReachable": "org.flywaydb.core.api.configuration.ClassicConfiguration"
},
"allDeclaredFields": true
},
{
"name": "org.flywaydb.core.internal.publishing.PublishingConfigurationExtension",
"queryAllDeclaredMethods": true,
"condition": {
"typeReachable": "org.flywaydb.core.extensibility.ConfigurationExtension"
},
"allDeclaredFields": true,
"queryAllDeclaredConstructors": true,
"methods": [
{
"name": "<init>",
"parameterTypes": [
]
},
{
"name": "isCheckDriftOnMigrate",
"parameterTypes": [
]
},
{
"name": "isPublishResult",
"parameterTypes": [
]
},
{
"name": "setCheckDriftOnMigrate",
"parameterTypes": [
"boolean"
]
},
{
"name": "setPublishResult",
"parameterTypes": [
"boolean"
]
}
]
}
]
14 changes: 14 additions & 0 deletions metadata/org.flywaydb/flyway-core/10.20.1/resource-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"resources": {
"includes": [
{
"pattern": "\\Qorg/flywaydb/core/internal/version.txt\\E",
"condition": {
"typeReachable": "org.flywaydb.core.internal.license.VersionPrinter"
}
}
]
},
"bundles": [
]
}
8 changes: 8 additions & 0 deletions metadata/org.flywaydb/flyway-core/index.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
[
{
"latest": true,
"metadata-version": "10.20.1",
"module": "org.flywaydb:flyway-core",
"tested-versions": [
"10.20.1"
]
},
{
"metadata-version": "10.20.0",
"module": "org.flywaydb:flyway-core",
"default-for": "10\\.20\\.0",
"tested-versions": [
"10.20.0"
]
Expand Down
6 changes: 6 additions & 0 deletions tests/src/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,12 @@
"name": "org.flywaydb:flyway-core",
"versions": [ "10.20.0" ]
} ]
}, {
"test-project-path": "org.flywaydb/flyway-core/10.20.1",
"libraries": [ {
"name": "org.flywaydb:flyway-core",
"versions": [ "10.20.1" ]
} ]
}, {
"test-project-path" : "org.flywaydb/flyway-core/9.0.1",
"libraries" : [ {
Expand Down
4 changes: 4 additions & 0 deletions tests/src/org.flywaydb/flyway-core/10.20.1/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
gradlew.bat
gradlew
gradle/
build/
12 changes: 12 additions & 0 deletions tests/src/org.flywaydb/flyway-core/10.20.1/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
The metadata has been generated by executing the following script:

```bash
./generate-metadata.sh
```

The generated metadata can be found in the `build/native/agent-output/test` directory.

Afterwards, the generated metadata has been cleaned:
- Remove path to test resources
- Remove `META-INF/services` entries
- Remove H2 references
10 changes: 10 additions & 0 deletions tests/src/org.flywaydb/flyway-core/10.20.1/access-filter.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"rules": [
{
"excludeClasses": ".**"
},
{
"includeClasses": "org.flywaydb.core.**"
}
]
}
38 changes: 38 additions & 0 deletions tests/src/org.flywaydb/flyway-core/10.20.1/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/*
* 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.flywaydb:flyway-core:$libraryVersion"
testImplementation 'com.h2database:h2:2.2.224'
testImplementation 'org.assertj:assertj-core:3.22.0'
testImplementation 'org.awaitility:awaitility:4.2.0'
testRuntimeOnly 'org.slf4j:slf4j-simple:2.0.16'
testRuntimeOnly 'org.apache.logging.log4j:log4j-api:2.24.1'
testRuntimeOnly 'commons-logging:commons-logging:1.3.4'
}

graalvmNative {
binaries {
test {
buildArgs.add('--no-fallback')
}
}
agent {
defaultMode = "conditional"
modes {
conditional {
userCodeFilterPath = "user-code-filter.json"
}
}
accessFilterFiles.from("access-filter.json")
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

./gradlew clean
./gradlew test --tests "flyway.FlywayTests" -Pagent
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
library.version=10.20.1
metadata.dir=org.flywaydb/flyway-core/10.20.1/
13 changes: 13 additions & 0 deletions tests/src/org.flywaydb/flyway-core/10.20.1/settings.gradle
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 = 'flyway-core-tests'
Loading
Loading