Skip to content

feat(jdbc/mysql-j-8): Add native image support for jdbc/mysql-j-8 #966

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

Merged
merged 9 commits into from
Sep 8, 2022
4 changes: 2 additions & 2 deletions .kokoro/tests/run_tests_graalvm_native.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ declare -i return_code=0
# jdbc/mysql-j-5 jdbc/mysql-j-8 jdbc/sqlserver r2dbc/sqlserver r2dbc/sqlserver
# r2dbc/mysql
# https://github.com/GoogleCloudPlatform/cloud-sql-jdbc-socket-factory/issues/824
for test_directory in jdbc/postgres; do
for test_directory in jdbc/postgres jdbc/mysql-j-8; do
pushd ${test_directory}
echo -e "******************** Running tests in ${test_directory} ********************\n"
# Dependency convergence enforcer rule would fail with the junit dependencies
Expand All @@ -56,4 +56,4 @@ for test_directory in jdbc/postgres; do
echo -e "******************** Tests complete in ${test_directory}, result: $result ********************\n"
popd
done
exit ${return_code}
exit ${return_code}
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ public void beforeAnalysis(BeforeAnalysisAccess access) {

NativeImageUtils.registerConstructorsForReflection(
access, "com.mysql.cj.conf.url.SingleConnectionUrl");
resourcesRegistry.addResources(ConfigurationCondition.alwaysTrue(),
"\\Qcom/mysql/cj/util/TimeZoneMapping.properties\\E");

// for mysql-j-5
NativeImageUtils.registerConstructorsForReflection(
Expand Down