Skip to content

Commit 2c091ef

Browse files
authored
Add reflection metadata for Flyway 10.20.1 (#571)
1 parent 8b2c13f commit 2c091ef

File tree

18 files changed

+487
-0
lines changed

18 files changed

+487
-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+
]
Lines changed: 247 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,247 @@
1+
[
2+
{
3+
"name": "org.flywaydb.core.api.migration.baseline.BaselineMigrationConfigurationExtension",
4+
"condition": {
5+
"typeReachable": "org.flywaydb.core.api.configuration.ClassicConfiguration"
6+
},
7+
"allDeclaredFields": true
8+
},
9+
{
10+
"name": "org.flywaydb.core.api.migration.baseline.BaselineMigrationConfigurationExtension",
11+
"queryAllDeclaredMethods": true,
12+
"condition": {
13+
"typeReachable": "org.flywaydb.core.extensibility.ConfigurationExtension"
14+
},
15+
"allDeclaredFields": true,
16+
"queryAllDeclaredConstructors": true,
17+
"methods": [
18+
{
19+
"name": "<init>",
20+
"parameterTypes": [
21+
]
22+
},
23+
{
24+
"name": "getBaselineMigrationPrefix",
25+
"parameterTypes": [
26+
]
27+
},
28+
{
29+
"name": "setBaselineMigrationPrefix",
30+
"parameterTypes": [
31+
"java.lang.String"
32+
]
33+
}
34+
]
35+
},
36+
{
37+
"name": "org.flywaydb.core.extensibility.ConfigurationExtension",
38+
"queryAllDeclaredMethods": true,
39+
"condition": {
40+
"typeReachable": "org.flywaydb.core.extensibility.ConfigurationExtension"
41+
}
42+
},
43+
{
44+
"name": "org.flywaydb.core.extensibility.Plugin",
45+
"queryAllDeclaredMethods": true,
46+
"condition": {
47+
"typeReachable": "org.flywaydb.core.extensibility.ConfigurationExtension"
48+
}
49+
},
50+
{
51+
"name": "org.flywaydb.core.internal.command.clean.CleanModeConfigurationExtension",
52+
"queryAllDeclaredMethods": true,
53+
"condition": {
54+
"typeReachable": "org.flywaydb.core.extensibility.ConfigurationExtension"
55+
},
56+
"allDeclaredFields": true,
57+
"queryAllDeclaredConstructors": true,
58+
"methods": [
59+
{
60+
"name": "<init>",
61+
"parameterTypes": [
62+
]
63+
},
64+
{
65+
"name": "getClean",
66+
"parameterTypes": [
67+
]
68+
},
69+
{
70+
"name": "setClean",
71+
"parameterTypes": [
72+
"org.flywaydb.core.internal.command.clean.CleanModel"
73+
]
74+
}
75+
]
76+
},
77+
{
78+
"name": "org.flywaydb.core.internal.command.clean.CleanModel",
79+
"queryAllDeclaredMethods": true,
80+
"condition": {
81+
"typeReachable": "org.flywaydb.core.extensibility.ConfigurationExtension"
82+
},
83+
"allDeclaredFields": true,
84+
"queryAllDeclaredConstructors": true
85+
},
86+
{
87+
"name": "org.flywaydb.core.internal.command.clean.SchemaModel",
88+
"queryAllDeclaredMethods": true,
89+
"condition": {
90+
"typeReachable": "org.flywaydb.core.extensibility.ConfigurationExtension"
91+
},
92+
"allDeclaredFields": true,
93+
"queryAllDeclaredConstructors": true
94+
},
95+
{
96+
"name": "org.flywaydb.core.internal.configuration.extensions.DeployScriptFilenameConfigurationExtension",
97+
"queryAllDeclaredMethods": true,
98+
"condition": {
99+
"typeReachable": "org.flywaydb.core.extensibility.ConfigurationExtension"
100+
},
101+
"allDeclaredFields": true,
102+
"queryAllDeclaredConstructors": true,
103+
"methods": [
104+
{
105+
"name": "<init>",
106+
"parameterTypes": [
107+
]
108+
},
109+
{
110+
"name": "getScriptFilename",
111+
"parameterTypes": [
112+
]
113+
},
114+
{
115+
"name": "setScriptFilename",
116+
"parameterTypes": [
117+
"java.lang.String"
118+
]
119+
}
120+
]
121+
},
122+
{
123+
"name": "org.flywaydb.core.internal.configuration.extensions.PrepareScriptFilenameConfigurationExtension",
124+
"queryAllDeclaredMethods": true,
125+
"condition": {
126+
"typeReachable": "org.flywaydb.core.extensibility.ConfigurationExtension"
127+
},
128+
"allDeclaredFields": true,
129+
"queryAllDeclaredConstructors": true,
130+
"methods": [
131+
{
132+
"name": "<init>",
133+
"parameterTypes": [
134+
]
135+
},
136+
{
137+
"name": "getScriptFilename",
138+
"parameterTypes": [
139+
]
140+
},
141+
{
142+
"name": "setScriptFilename",
143+
"parameterTypes": [
144+
"java.lang.String"
145+
]
146+
}
147+
]
148+
},
149+
{
150+
"name": "org.flywaydb.core.internal.logging.apachecommons.ApacheCommonsLogCreator",
151+
"condition": {
152+
"typeReachable": "org.flywaydb.core.internal.util.ClassUtils"
153+
},
154+
"methods": [
155+
{
156+
"name": "<init>",
157+
"parameterTypes": [
158+
]
159+
}
160+
]
161+
},
162+
{
163+
"name": "org.flywaydb.core.internal.logging.log4j2.Log4j2LogCreator",
164+
"condition": {
165+
"typeReachable": "org.flywaydb.core.internal.util.ClassUtils"
166+
},
167+
"methods": [
168+
{
169+
"name": "<init>",
170+
"parameterTypes": [
171+
]
172+
}
173+
]
174+
},
175+
{
176+
"name": "org.flywaydb.core.internal.logging.slf4j.Slf4jLogCreator",
177+
"condition": {
178+
"typeReachable": "org.flywaydb.core.internal.util.ClassUtils"
179+
},
180+
"methods": [
181+
{
182+
"name": "<init>",
183+
"parameterTypes": [
184+
]
185+
}
186+
]
187+
},
188+
{
189+
"name": "org.flywaydb.core.internal.proprietaryStubs.LicensingConfigurationExtensionStub",
190+
"condition": {
191+
"typeReachable": "org.flywaydb.core.api.configuration.ClassicConfiguration"
192+
},
193+
"allDeclaredFields": true
194+
},
195+
{
196+
"name": "org.flywaydb.core.internal.proprietaryStubs.PATTokenConfigurationExtensionStub",
197+
"condition": {
198+
"typeReachable": "org.flywaydb.core.api.configuration.ClassicConfiguration"
199+
},
200+
"allDeclaredFields": true
201+
},
202+
{
203+
"name": "org.flywaydb.core.internal.publishing.PublishingConfigurationExtension",
204+
"condition": {
205+
"typeReachable": "org.flywaydb.core.api.configuration.ClassicConfiguration"
206+
},
207+
"allDeclaredFields": true
208+
},
209+
{
210+
"name": "org.flywaydb.core.internal.publishing.PublishingConfigurationExtension",
211+
"queryAllDeclaredMethods": true,
212+
"condition": {
213+
"typeReachable": "org.flywaydb.core.extensibility.ConfigurationExtension"
214+
},
215+
"allDeclaredFields": true,
216+
"queryAllDeclaredConstructors": true,
217+
"methods": [
218+
{
219+
"name": "<init>",
220+
"parameterTypes": [
221+
]
222+
},
223+
{
224+
"name": "isCheckDriftOnMigrate",
225+
"parameterTypes": [
226+
]
227+
},
228+
{
229+
"name": "isPublishResult",
230+
"parameterTypes": [
231+
]
232+
},
233+
{
234+
"name": "setCheckDriftOnMigrate",
235+
"parameterTypes": [
236+
"boolean"
237+
]
238+
},
239+
{
240+
"name": "setPublishResult",
241+
"parameterTypes": [
242+
"boolean"
243+
]
244+
}
245+
]
246+
}
247+
]
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"resources": {
3+
"includes": [
4+
{
5+
"pattern": "\\Qorg/flywaydb/core/internal/version.txt\\E",
6+
"condition": {
7+
"typeReachable": "org.flywaydb.core.internal.license.VersionPrinter"
8+
}
9+
}
10+
]
11+
},
12+
"bundles": [
13+
]
14+
}

metadata/org.flywaydb/flyway-core/index.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
[
22
{
33
"latest": true,
4+
"metadata-version": "10.20.1",
5+
"module": "org.flywaydb:flyway-core",
6+
"tested-versions": [
7+
"10.20.1"
8+
]
9+
},
10+
{
411
"metadata-version": "10.20.0",
512
"module": "org.flywaydb:flyway-core",
13+
"default-for": "10\\.20\\.0",
614
"tested-versions": [
715
"10.20.0"
816
]

tests/src/index.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,12 @@
430430
"name": "org.flywaydb:flyway-core",
431431
"versions": [ "10.20.0" ]
432432
} ]
433+
}, {
434+
"test-project-path": "org.flywaydb/flyway-core/10.20.1",
435+
"libraries": [ {
436+
"name": "org.flywaydb:flyway-core",
437+
"versions": [ "10.20.1" ]
438+
} ]
433439
}, {
434440
"test-project-path" : "org.flywaydb/flyway-core/9.0.1",
435441
"libraries" : [ {
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
gradlew.bat
2+
gradlew
3+
gradle/
4+
build/
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
The metadata has been generated by executing the following script:
2+
3+
```bash
4+
./generate-metadata.sh
5+
```
6+
7+
The generated metadata can be found in the `build/native/agent-output/test` directory.
8+
9+
Afterwards, the generated metadata has been cleaned:
10+
- Remove path to test resources
11+
- Remove `META-INF/services` entries
12+
- Remove H2 references
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"rules": [
3+
{
4+
"excludeClasses": ".**"
5+
},
6+
{
7+
"includeClasses": "org.flywaydb.core.**"
8+
}
9+
]
10+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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+
plugins {
8+
id "org.graalvm.internal.tck"
9+
}
10+
11+
String libraryVersion = tck.testedLibraryVersion.get()
12+
13+
dependencies {
14+
testImplementation "org.flywaydb:flyway-core:$libraryVersion"
15+
testImplementation 'com.h2database:h2:2.2.224'
16+
testImplementation 'org.assertj:assertj-core:3.22.0'
17+
testImplementation 'org.awaitility:awaitility:4.2.0'
18+
testRuntimeOnly 'org.slf4j:slf4j-simple:2.0.16'
19+
testRuntimeOnly 'org.apache.logging.log4j:log4j-api:2.24.1'
20+
testRuntimeOnly 'commons-logging:commons-logging:1.3.4'
21+
}
22+
23+
graalvmNative {
24+
binaries {
25+
test {
26+
buildArgs.add('--no-fallback')
27+
}
28+
}
29+
agent {
30+
defaultMode = "conditional"
31+
modes {
32+
conditional {
33+
userCodeFilterPath = "user-code-filter.json"
34+
}
35+
}
36+
accessFilterFiles.from("access-filter.json")
37+
}
38+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env bash
2+
3+
./gradlew clean
4+
./gradlew test --tests "flyway.FlywayTests" -Pagent

0 commit comments

Comments
 (0)