From ef9789ad1d432e5d8ebc68b0476535708912f22b Mon Sep 17 00:00:00 2001 From: Jacob Laursen Date: Mon, 19 Dec 2022 23:49:51 +0100 Subject: [PATCH] Upgrade MySQL Connector/J to 8.0.31 (#13991) Signed-off-by: Jacob Laursen Signed-off-by: Doug Culnane --- bundles/org.openhab.persistence.jdbc/README.md | 2 +- bundles/org.openhab.persistence.jdbc/pom.xml | 8 ++++---- .../src/main/feature/feature.xml | 2 +- .../persistence/jdbc/internal/JdbcConfiguration.java | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/bundles/org.openhab.persistence.jdbc/README.md b/bundles/org.openhab.persistence.jdbc/README.md index 02126f609443d..8147945d5a361 100644 --- a/bundles/org.openhab.persistence.jdbc/README.md +++ b/bundles/org.openhab.persistence.jdbc/README.md @@ -13,7 +13,7 @@ The following databases are currently supported and tested: | [H2](https://www.h2database.com/) | [h2-1.4.191.jar](https://mvnrepository.com/artifact/com.h2database/h2) | | [HSQLDB](http://hsqldb.org/) | [hsqldb-2.3.3.jar](https://mvnrepository.com/artifact/org.hsqldb/hsqldb) | | [MariaDB](https://mariadb.org/) | [mariadb-java-client-3.0.8.jar](https://mvnrepository.com/artifact/org.mariadb.jdbc/mariadb-java-client) | -| [MySQL](https://www.mysql.com/) | [mysql-connector-java-8.0.30.jar](https://mvnrepository.com/artifact/mysql/mysql-connector-java) | +| [MySQL](https://www.mysql.com/) | [mysql-connector-j-8.0.31.jar](https://mvnrepository.com/artifact/com.mysql/mysql-connector-j) | | [PostgreSQL](https://www.postgresql.org/) | [postgresql-42.4.3.jar](https://mvnrepository.com/artifact/org.postgresql/postgresql) | | [SQLite](https://www.sqlite.org/) | [sqlite-jdbc-3.16.1.jar](https://mvnrepository.com/artifact/org.xerial/sqlite-jdbc) | | [TimescaleDB](https://www.timescale.com/) | [postgresql-42.4.3.jar](https://mvnrepository.com/artifact/org.postgresql/postgresql) | diff --git a/bundles/org.openhab.persistence.jdbc/pom.xml b/bundles/org.openhab.persistence.jdbc/pom.xml index c5e3bf373d785..a7e2fa246d4b4 100644 --- a/bundles/org.openhab.persistence.jdbc/pom.xml +++ b/bundles/org.openhab.persistence.jdbc/pom.xml @@ -16,7 +16,7 @@ !org.osgi.service.jdbc.*,!sun.security.*,!org.apache.lucene.*,!org.apache.logging.log4j,!waffle.windows.auth.*,!org.hibernate.*,!org.jboss.*,!org.codehaus.groovy.*,!com.codahale.metrics.*,!com.google.protobuf.*,!com.ibm.icu.*,!com.ibm.jvm.*,!com.mchange.*,!com.sun.*,!com.vividsolutions.*,!io.prometheus.*,com.mysql.*;resolution:=optional,org.apache.derby.*;resolution:=optional,org.h2.*;resolution:=optional,org.hsqldb;resolution:=optional,org.hsqldb.jdbc;resolution:=optional,org.mariadb.*;resolution:=optional,org.postgresql.*;resolution:=optional,org.sqlite;resolution:=optional,org.sqlite.jdbc4;resolution:=optional,javassist*;resolution:=optional - derby,h2,hsqldb,mariadb-java-client,mysql-connector-java,postgresql,sqlite-jdbc + derby,h2,hsqldb,mariadb-java-client,mysql-connector-j,postgresql,sqlite-jdbc UTF-8 UTF-8 @@ -29,7 +29,7 @@ 1.4.191 2.3.3 3.0.8 - 8.0.30 + 8.0.31 42.4.3 3.40.0.0 @@ -73,8 +73,8 @@ ${mariadb.version} - mysql - mysql-connector-java + com.mysql + mysql-connector-j ${mysql.version} diff --git a/bundles/org.openhab.persistence.jdbc/src/main/feature/feature.xml b/bundles/org.openhab.persistence.jdbc/src/main/feature/feature.xml index c6aa7b7f4956e..4289dcd4810d6 100644 --- a/bundles/org.openhab.persistence.jdbc/src/main/feature/feature.xml +++ b/bundles/org.openhab.persistence.jdbc/src/main/feature/feature.xml @@ -34,7 +34,7 @@ mvn:org.openhab.addons.features.karaf/org.openhab.addons.features.karaf.openhab-addons-external/${project.version}/cfg/jdbc openhab-runtime-base - mvn:mysql/mysql-connector-java/8.0.30 + mvn:com.mysql/mysql-connector-j/8.0.31 mvn:org.openhab.addons.bundles/org.openhab.persistence.jdbc/${project.version} diff --git a/bundles/org.openhab.persistence.jdbc/src/main/java/org/openhab/persistence/jdbc/internal/JdbcConfiguration.java b/bundles/org.openhab.persistence.jdbc/src/main/java/org/openhab/persistence/jdbc/internal/JdbcConfiguration.java index c9651c05de867..5cee8c173318e 100644 --- a/bundles/org.openhab.persistence.jdbc/src/main/java/org/openhab/persistence/jdbc/internal/JdbcConfiguration.java +++ b/bundles/org.openhab.persistence.jdbc/src/main/java/org/openhab/persistence/jdbc/internal/JdbcConfiguration.java @@ -330,7 +330,7 @@ private void testJDBCDriver(String driver) { warn += "\tMariaDB: version >= 3.0.8 from https://mvnrepository.com/artifact/org.mariadb.jdbc/mariadb-java-client\n"; break; case "mysql": - warn += "\tMySQL: version >= 8.0.30 from https://mvnrepository.com/artifact/mysql/mysql-connector-java\n"; + warn += "\tMySQL: version >= 8.0.31 from https://mvnrepository.com/artifact/com.mysql/mysql-connector-j\n"; break; case "postgresql": warn += "\tPostgreSQL:version >= 42.4.3 from https://mvnrepository.com/artifact/org.postgresql/postgresql\n";