Skip to content

Commit bcab9f1

Browse files
authored
Merge pull request #168 from linghengqian/opengauss-jdbc
Add support for `org.opengauss:opengauss-jdbc:3.1.0-og`
2 parents 49f2535 + bfc25a1 commit bcab9f1

File tree

11 files changed

+499
-0
lines changed

11 files changed

+499
-0
lines changed

metadata/index.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
"directory": "com.h2database/h2",
2424
"module": "com.h2database:h2"
2525
},
26+
{
27+
"directory": "org.opengauss/opengauss-jdbc",
28+
"module": "org.opengauss:opengauss-jdbc"
29+
},
2630
{
2731
"directory": "org.hdrhistogram/HdrHistogram",
2832
"module": "org.hdrhistogram:HdrHistogram"
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: 155 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
[
2+
{
3+
"condition": {
4+
"typeReachable": "org.opengauss.log.LogFactory"
5+
},
6+
"name": "JdkLogger"
7+
},
8+
{
9+
"condition": {
10+
"typeReachable": "org.opengauss.core.v3.ConnectionFactoryImpl"
11+
},
12+
"name": "java.security.SecureRandomParameters"
13+
},
14+
{
15+
"condition": {
16+
"typeReachable": "org.opengauss.core.Oid"
17+
},
18+
"name": "org.opengauss.core.Oid",
19+
"allPublicFields": true
20+
},
21+
{
22+
"condition": {
23+
"typeReachable": "org.opengauss.jdbc.PgConnection"
24+
},
25+
"name": "org.opengauss.geometric.PGbox",
26+
"methods": [
27+
{
28+
"name": "<init>",
29+
"parameterTypes": []
30+
}
31+
]
32+
},
33+
{
34+
"condition": {
35+
"typeReachable": "org.opengauss.jdbc.PgConnection"
36+
},
37+
"name": "org.opengauss.geometric.PGcircle",
38+
"methods": [
39+
{
40+
"name": "<init>",
41+
"parameterTypes": []
42+
}
43+
]
44+
},
45+
{
46+
"condition": {
47+
"typeReachable": "org.opengauss.jdbc.PgConnection"
48+
},
49+
"name": "org.opengauss.geometric.PGlseg",
50+
"methods": [
51+
{
52+
"name": "<init>",
53+
"parameterTypes": []
54+
}
55+
]
56+
},
57+
{
58+
"condition": {
59+
"typeReachable": "org.opengauss.jdbc.PgConnection"
60+
},
61+
"name": "org.opengauss.geometric.PGpath",
62+
"methods": [
63+
{
64+
"name": "<init>",
65+
"parameterTypes": []
66+
}
67+
]
68+
},
69+
{
70+
"condition": {
71+
"typeReachable": "org.opengauss.jdbc.PgConnection"
72+
},
73+
"name": "org.opengauss.geometric.PGpoint",
74+
"methods": [
75+
{
76+
"name": "<init>",
77+
"parameterTypes": []
78+
}
79+
]
80+
},
81+
{
82+
"condition": {
83+
"typeReachable": "org.opengauss.jdbc.PgConnection"
84+
},
85+
"name": "org.opengauss.geometric.PGpolygon",
86+
"methods": [
87+
{
88+
"name": "<init>",
89+
"parameterTypes": []
90+
}
91+
]
92+
},
93+
{
94+
"condition": {
95+
"typeReachable": "org.opengauss.log.LogFactory"
96+
},
97+
"name": "org.opengauss.log.JdkLogger",
98+
"methods": [
99+
{
100+
"name": "<init>",
101+
"parameterTypes": [
102+
"java.lang.String"
103+
]
104+
}
105+
]
106+
},
107+
{
108+
"condition": {
109+
"typeReachable": "org.opengauss.jdbc.PgConnection"
110+
},
111+
"name": "org.opengauss.util.PGInterval",
112+
"methods": [
113+
{
114+
"name": "<init>",
115+
"parameterTypes": []
116+
}
117+
]
118+
},
119+
{
120+
"condition": {
121+
"typeReachable": "org.opengauss.util.MD5Digest"
122+
},
123+
"name": "sun.security.provider.MD5",
124+
"methods": [
125+
{
126+
"name": "<init>",
127+
"parameterTypes": []
128+
}
129+
]
130+
},
131+
{
132+
"condition": {
133+
"typeReachable": "org.opengauss.core.v3.ConnectionFactoryImpl"
134+
},
135+
"name": "sun.security.provider.NativePRNG",
136+
"methods": [
137+
{
138+
"name": "<init>",
139+
"parameterTypes": []
140+
}
141+
]
142+
},
143+
{
144+
"condition": {
145+
"typeReachable": "org.opengauss.core.v3.ConnectionFactoryImpl"
146+
},
147+
"name": "sun.security.provider.SHA",
148+
"methods": [
149+
{
150+
"name": "<init>",
151+
"parameterTypes": []
152+
}
153+
]
154+
}
155+
]
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"resources":{
3+
"includes":[]},
4+
"bundles":[{
5+
"name":"org.opengauss.translation.messages",
6+
"classNames":["org.opengauss.translation.messages_zh_CN"]
7+
}]
8+
}
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": "3.1.0-og",
5+
"module": "org.opengauss:opengauss-jdbc",
6+
"tested-versions": [
7+
"3.1.0-og"
8+
]
9+
}
10+
]

tests/src/index.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,17 @@
3232
}
3333
]
3434
},
35+
{
36+
"test-project-path": "org.opengauss/opengauss-jdbc/3.1.0-og",
37+
"libraries": [
38+
{
39+
"name": "org.opengauss:opengauss-jdbc",
40+
"versions": [
41+
"3.1.0-og"
42+
]
43+
}
44+
]
45+
},
3546
{
3647
"test-project-path": "org.hdrhistogram/HdrHistogram/2.1.12",
3748
"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: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
plugins {
9+
id "org.graalvm.internal.tck"
10+
}
11+
12+
String libraryVersion = tck.testedLibraryVersion.get()
13+
14+
dependencies {
15+
testImplementation "org.opengauss:opengauss-jdbc:$libraryVersion"
16+
testImplementation 'org.assertj:assertj-core:3.22.0'
17+
testImplementation 'org.awaitility:awaitility:4.2.0'
18+
}
19+
20+
graalvmNative {
21+
agent {
22+
defaultMode = "conditional"
23+
modes {
24+
conditional {
25+
userCodeFilterPath = "user-code-filter.json"
26+
}
27+
}
28+
metadataCopy {
29+
mergeWithExisting = true
30+
inputTaskNames.add("test")
31+
outputDirectories.add("src/test/resources/META-INF/native-image/org.opengauss/opengauss-jdbc")
32+
}
33+
}
34+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
library.version = 3.1.0-og
2+
metadata.dir = org.opengauss/opengauss-jdbc/3.1.0-og/
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 = 'org.opengauss.opengauss-jdbc_tests'

0 commit comments

Comments
 (0)