Skip to content

Commit

Permalink
fix(deps): update dependency io.micronaut.data:micronaut-data-bom to …
Browse files Browse the repository at this point in the history
…v4.0.0-m9 (#134)

* fix(deps): update dependency io.micronaut.data:micronaut-data-bom to v4.0.0-m9

* Fix for Data M9. Classes were moved in micronaut-projects/micronaut-data#2189

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Tim Yates <[email protected]>
  • Loading branch information
renovate[bot] and timyates authored Jun 19, 2023
1 parent 8824e4c commit 090969e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ dependencies {
api(libs.managed.crac)
compileOnly(mn.micronaut.http.server.netty)
compileOnly(mnSql.micronaut.jdbc.hikari)
compileOnly(mnData.micronaut.data.tx)
compileOnly(mnData.micronaut.data.connection.jdbc)
compileOnly(mnRedis.micronaut.redis.lettuce)

testImplementation(mnData.micronaut.data.connection.jdbc)
testImplementation(mnData.micronaut.data.tx)
testImplementation(mnSql.micronaut.jdbc.hikari)
testImplementation(mnSerde.micronaut.serde.jackson)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import io.micronaut.core.annotation.NonNull;
import io.micronaut.crac.CracConfiguration;
import io.micronaut.crac.resources.datasources.HikariDataSourceResource;
import io.micronaut.transaction.jdbc.DelegatingDataSource;
import io.micronaut.data.connection.jdbc.advice.DelegatingDataSource;
import jakarta.inject.Singleton;
import org.crac.Resource;
import org.slf4j.Logger;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import io.micronaut.core.annotation.Experimental;
import io.micronaut.core.annotation.NonNull;
import io.micronaut.crac.CracConfiguration;
import io.micronaut.transaction.jdbc.DelegatingDataSource;
import io.micronaut.data.connection.jdbc.advice.DelegatingDataSource;
import jakarta.inject.Singleton;
import org.crac.Resource;
import org.slf4j.Logger;
Expand All @@ -30,7 +30,7 @@
import java.util.Optional;

/**
* If the data Source is of type {@link io.micronaut.transaction.jdbc.DelegatingDataSource}, extract the underlying data source.
* If the data Source is of type {@link io.micronaut.data.connection.jdbc.advice.DelegatingDataSource}, extract the underlying data source.
*
* @author Sergio del Amo
* @since 1.2.0
Expand Down
4 changes: 2 additions & 2 deletions crac/src/test/groovy/io/micronaut/crac/HikariSpec.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import groovy.sql.Sql
import io.micronaut.context.BeanContext
import io.micronaut.context.annotation.Property
import io.micronaut.crac.test.CheckpointSimulator
import io.micronaut.data.connection.jdbc.advice.DelegatingDataSource
import io.micronaut.test.extensions.spock.annotation.MicronautTest
import io.micronaut.transaction.jdbc.DelegatingDataSource
import jakarta.inject.Inject
import org.slf4j.LoggerFactory
import spock.lang.AutoCleanup
Expand Down Expand Up @@ -50,7 +50,7 @@ class HikariSpec extends Specification {
hikariDataSource.running

when: "we make sure we've got a connection warmed up"
def rows = new Sql(dataSource).rows("select 1")
def rows = new Sql(hikariDataSource).rows("select 1")

then:
rows.size() == 1
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
micronaut = "4.0.0-RC1"

micronaut-cache = "4.0.0-M5"
micronaut-data = "4.0.0-M7"
micronaut-data = "4.0.0-M9"
micronaut-docs = "2.0.0"
micronaut-redis = "6.0.0-M5"
micronaut-serialization = "2.0.0-M12"
Expand Down

0 comments on commit 090969e

Please sign in to comment.