Skip to content

Commit 9d4f07f

Browse files
authored
Provide metadata for MariaDB Java Client 3.5.2 (#612)
Due to the changes in [1], mariadb-java-client now requires reflective access to all of the methods on Configuration$Builder in addition to its fields. [1] mariadb-corporation/mariadb-connector-j@ca5057c
1 parent be77f06 commit 9d4f07f

File tree

12 files changed

+269
-0
lines changed

12 files changed

+269
-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: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
[
2+
{
3+
"condition": {
4+
"typeReachable": "org.mariadb.jdbc.Configuration"
5+
},
6+
"name": "org.mariadb.jdbc.Configuration",
7+
"allDeclaredFields": true
8+
},
9+
{
10+
"condition": {
11+
"typeReachable": "org.mariadb.jdbc.Configuration"
12+
},
13+
"name": "org.mariadb.jdbc.Configuration$Builder",
14+
"allDeclaredFields": true,
15+
"allPublicMethods": true
16+
},
17+
{
18+
"condition": {
19+
"typeReachable": "org.mariadb.jdbc.plugin.authentication.standard.NativePasswordPlugin"
20+
},
21+
"name": "sun.security.provider.SHA",
22+
"methods": [
23+
{
24+
"name": "<init>",
25+
"parameterTypes": []
26+
}
27+
]
28+
}
29+
]
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.mariadb.jdbc.util.VersionFactory"
8+
},
9+
"pattern": "\\Qmariadb.properties\\E"
10+
}
11+
]
12+
}
13+
}

metadata/org.mariadb.jdbc/mariadb-java-client/index.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@
2525
"3.5.0",
2626
"3.5.1"
2727
],
28+
"module" : "org.mariadb.jdbc:mariadb-java-client"
29+
},
30+
{
31+
"metadata-version" : "3.5.2",
32+
"tested-versions" : [
33+
"3.5.2"
34+
],
2835
"latest" : true,
2936
"module" : "org.mariadb.jdbc:mariadb-java-client"
3037
}

tests/src/index.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,12 @@
604604
"name" : "org.mariadb.jdbc:mariadb-java-client",
605605
"versions" : [ "3.0.6" ]
606606
} ]
607+
}, {
608+
"test-project-path" : "org.mariadb.jdbc/mariadb-java-client/3.5.2",
609+
"libraries" : [ {
610+
"name" : "org.mariadb.jdbc:mariadb-java-client",
611+
"versions" : [ "3.5.2" ]
612+
} ]
607613
}, {
608614
"test-project-path" : "org.mariadb/r2dbc-mariadb/1.1.3",
609615
"libraries" : [ {
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
mariadb-stderr.txt
2+
mariadb-stdout.txt
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
implementation "org.mariadb.jdbc:mariadb-java-client:$libraryVersion"
15+
testImplementation 'org.assertj:assertj-core:3.22.0'
16+
testImplementation 'org.awaitility:awaitility:4.2.0'
17+
}
18+
19+
graalvmNative {
20+
agent {
21+
defaultMode = "conditional"
22+
modes {
23+
conditional {
24+
userCodeFilterPath = "user-code-filter.json"
25+
}
26+
}
27+
metadataCopy {
28+
mergeWithExisting = true
29+
inputTaskNames.add("test")
30+
outputDirectories.add("src/test/resources/META-INF/native-image/org.mariadb.jdbc/mariadb-java-client")
31+
}
32+
}
33+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
library.version=3.5.2
2+
metadata.dir=org.mariadb.jdbc/mariadb-java-client/3.5.2
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
mariadb:10.8
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
pluginManagement {
9+
def tckPath = Objects.requireNonNullElse(
10+
System.getenv("GVM_TCK_TCKDIR"),
11+
"../../../../tck-build-logic"
12+
)
13+
includeBuild(tckPath)
14+
}
15+
16+
plugins {
17+
id "org.graalvm.internal.tck-settings" version "1.0.0-SNAPSHOT"
18+
}
19+
20+
rootProject.name = 'mariadb-java-client-tests'

0 commit comments

Comments
 (0)