Skip to content

Commit

Permalink
build: use mysql-connector-j dependency (#1106)
Browse files Browse the repository at this point in the history
* build: use mysql-connector-j dependency

* micronaut gradle plugin to 4.1.2, test-resources to 2.1.0

---------

Co-authored-by: Dean Wette <[email protected]>
  • Loading branch information
sdelamo and wetted authored Oct 27, 2023
1 parent d5b4d2b commit 10ecdb1
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ managed-postgres-driver = "42.6.0"
managed-mariadb-driver = "3.2.0"
managed-mssql-driver = "12.4.1.jre11"
managed-mysql-driver = "8.0.33"
managed-mysql-connector-j = "8.1.0"

# JDBC Pools

Expand Down Expand Up @@ -137,6 +138,8 @@ managed-postgresql = { module = "org.postgresql:postgresql", version.ref = "mana
managed-mariadb-java-client = { module = "org.mariadb.jdbc:mariadb-java-client", version.ref = "managed-mariadb-driver" }
managed-mssql-jdbc = { module = "com.microsoft.sqlserver:mssql-jdbc", version.ref = "managed-mssql-driver" }
managed-mysql-connector-java = { module = "mysql:mysql-connector-java", version.ref = "managed-mysql-driver" }
managed-mysql-connector-j = { module = "com.mysql:mysql-connector-j", version.ref = "managed-mysql-connector-j" }

managed-ojdbc8 = { module = "com.oracle.database.jdbc:ojdbc8", version.ref = "managed-ojdbc" }
managed-ojdbc11 = { module = "com.oracle.database.jdbc:ojdbc11", version.ref = "managed-ojdbc" }

Expand Down
2 changes: 1 addition & 1 deletion tests/hibernate6/hibernate6-mysql-disabled/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ dependencies {
testImplementation projects.micronautTests.micronautCommonTests

runtimeOnly projects.micronautJdbcHikari
runtimeOnly libs.managed.mysql.connector.java
runtimeOnly(libs.managed.mysql.connector.j)
}

configurations {
Expand Down
2 changes: 1 addition & 1 deletion tests/hibernate6/hibernate6-mysql/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ dependencies {

runtimeOnly projects.micronautJdbcTomcat

runtimeOnly libs.managed.mysql.connector.java
runtimeOnly(libs.managed.mysql.connector.j)
}

configurations {
Expand Down
2 changes: 1 addition & 1 deletion tests/hibernate6/hibernate6-reactive-mysql/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ dependencies {
implementation libs.managed.vertx.mysql.client

// Testcontainers wait function needs the driver
runtimeOnly libs.managed.mysql.connector.java
runtimeOnly(libs.managed.mysql.connector.j)
}

micronaut {
Expand Down
2 changes: 1 addition & 1 deletion vertx-mysql-client/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ dependencies {
testImplementation(mn.micronaut.management)
testImplementation(libs.testcontainers.spock)
testImplementation(libs.testcontainers.mysql)
testImplementation(libs.managed.mysql.connector.java)
testImplementation(libs.managed.mysql.connector.j)
}

0 comments on commit 10ecdb1

Please sign in to comment.