Open csbiggar opened 1 day ago
Our issue might be related, using implementation("com.google.cloud:spring-cloud-gcp-starter-secretmanager:5.8.0"), secret manager does not load secrets anymore. No error message, but secrets are resolved as their placeholder names.
Version compatibility request
This is a compatibility request rather than a bug. I understand the release cycle is not linked to Spring Boot, and that the current spring boot dependency version is 3.3.4, but users of
spring-cloud-gcp-starter-data-datastore
will be unable to upgrade Spring Boot from 3.3.x > 3.4.0 due to this incompatibilitySetup
My project is gradle/kotlin (which I don't think is relevant) .
Partial build.gradle.kts file:
Problem
org.springframework.boot
version 3.3.6 runs fine withspring-cloud-gcp-dependencies:5.8.0
:+1:On upgrading
org.springframework.boot
version to 3.4.0 I get the following on startup :disappointed:spring-cloud-gcp-starter-data-datastore class DatastoreTransactionManagerAutoConfiguration
callsorg.springframework.boot.autoconfigure.transaction.TransactionManagerCustomizers
functioncustomize
, hereDatastoreTransactionManager
extendsorg.springframework.transaction.support.AbstractPlatformTransactionManager
which implementsPlatformTransactionManager
( here)The overload of
customize
inTransactionManagerCustomizers
which takesPlatformTransactionManager
was deprecated in 3.2.0 and hence has been removed in 3.4.0 as per the release notes here , it can only takeTransactionManager
now:Suggestion (not checked!)
All the removed function in
TransactionManagerCustomizers
did was castPlatformTransactionManager
toTransactionManager
, and called the (remaining) overloaded function.Maybe a quick fix to cast it in
DatastoreTransactionManagerAutoConfiguration
would work?? And should be backwards compatible?Sample If possible, please provide a test case or sample application that reproduces the problem. This makes it much easier for us to diagnose the problem and to verify that we have fixed it.