Skip to content

Commit bf0d957

Browse files
Add metadata for org.flywaydb:flyway-core (#40)
2 parents df3eb00 + 9b87f0b commit bf0d957

File tree

16 files changed

+256
-0
lines changed

16 files changed

+256
-0
lines changed

metadata/index.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,9 @@
7070
{
7171
"directory": "org.quartz-scheduler/quartz",
7272
"module": "org.quartz-scheduler:quartz"
73+
},
74+
{
75+
"directory": "org.flywaydb/flyway-core",
76+
"module": "org.flywaydb:flyway-core"
7377
}
7478
]
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: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
[
2+
{
3+
"condition": {
4+
"typeReachable": "org.flywaydb.core.internal.jdbc.JdbcUtils"
5+
},
6+
"name": "sun.security.provider.SHA2$SHA256",
7+
"methods": [
8+
{
9+
"name": "<init>",
10+
"parameterTypes": []
11+
}
12+
]
13+
},
14+
{
15+
"condition": {
16+
"typeReachable": "org.slf4j.Logger"
17+
},
18+
"name": "org.flywaydb.core.internal.logging.slf4j.Slf4jLogCreator",
19+
"allPublicConstructors": true
20+
},
21+
{
22+
"condition": {
23+
"typeReachable": "org.apache.logging.log4j.Logger"
24+
},
25+
"name": "org.flywaydb.core.internal.logging.log4j2.Log4j2LogCreator",
26+
"allPublicConstructors": true
27+
},
28+
{
29+
"condition": {
30+
"typeReachable": "org.apache.commons.logging.Log"
31+
},
32+
"name": "org.flywaydb.core.internal.logging.apachecommons.ApacheCommonsLogCreator",
33+
"allPublicConstructors": true
34+
}
35+
]
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"bundles": [],
3+
"resources": {
4+
"includes": [
5+
{
6+
"condition": {
7+
"typeReachable": "org.flywaydb.core.internal.license.VersionPrinter"
8+
},
9+
"pattern": "\\Qorg/flywaydb/core/internal/version.txt\\E"
10+
}
11+
]
12+
}
13+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[
2+
{
3+
"latest": true,
4+
"metadata-version": "9.0.1",
5+
"module": "org.flywaydb:flyway-core",
6+
"tested-versions": [
7+
"9.0.1"
8+
]
9+
}
10+
]

tests/src/index.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,5 +174,16 @@
174174
]
175175
}
176176
]
177+
},
178+
{
179+
"test-project-path": "org.flywaydb/flyway-core/9.0.1",
180+
"libraries": [
181+
{
182+
"name": "org.flywaydb:flyway-core",
183+
"versions": [
184+
"9.0.1"
185+
]
186+
}
187+
]
177188
}
178189
]
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: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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+
import org.graalvm.internal.tck.TestUtils
9+
10+
plugins {
11+
id "org.graalvm.internal.tck"
12+
}
13+
14+
String libraryVersion = TestUtils.testedLibraryVersion
15+
16+
dependencies {
17+
testImplementation "org.flywaydb:flyway-core:$libraryVersion"
18+
testImplementation 'com.h2database:h2:2.1.210'
19+
testImplementation 'org.assertj:assertj-core:3.22.0'
20+
testImplementation 'org.awaitility:awaitility:4.2.0'
21+
}
22+
23+
graalvmNative {
24+
agent {
25+
defaultMode = "conditional"
26+
modes {
27+
conditional {
28+
userCodeFilterPath = "user-code-filter.json"
29+
}
30+
}
31+
metadataCopy {
32+
mergeWithExisting = true
33+
inputTaskNames.add("test")
34+
outputDirectories.add("src/test/resources/META-INF/native-image/org.flywaydb/flyway-core")
35+
}
36+
}
37+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
library.version=9.0.1
2+
metadata.dir=org.flywaydb/flyway-core/9.0.1/
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
pluginManagement {
2+
def tckPath = Objects.requireNonNullElse(
3+
System.getenv("GVM_TCK_TCKDIR"),
4+
"../../../../tck-build-logic"
5+
)
6+
includeBuild(tckPath)
7+
}
8+
9+
plugins {
10+
id "org.graalvm.internal.tck-settings" version "1.0.0-SNAPSHOT"
11+
}
12+
13+
rootProject.name = 'flyway-core-tests'

0 commit comments

Comments
 (0)