Browse Source
Relocate `@AutoConfigureDataSourceInitialization` from `spring-jdbc-test` to `spring-boot-test-autoconfigure`. This change allows Flyway and Liquibase to respond to the annotation without the user needing to remember the `spring-jdbc-test` dependency. This is especially important for R2DB applications which may still be using Flyway or Liquibase for migrations and will want them to apply during tests. See gh-46356 See gh-47322pull/47381/head
15 changed files with 32 additions and 11 deletions
@ -0,0 +1,23 @@
@@ -0,0 +1,23 @@
|
||||
/* |
||||
* Copyright 2012-present the original author or authors. |
||||
* |
||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
||||
* you may not use this file except in compliance with the License. |
||||
* You may obtain a copy of the License at |
||||
* |
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
* |
||||
* Unless required by applicable law or agreed to in writing, software |
||||
* distributed under the License is distributed on an "AS IS" BASIS, |
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
* See the License for the specific language governing permissions and |
||||
* limitations under the License. |
||||
*/ |
||||
|
||||
/** |
||||
* Auto-configuration for core JDBC test concerns. |
||||
*/ |
||||
@NullMarked |
||||
package org.springframework.boot.test.autoconfigure.jdbc; |
||||
|
||||
import org.jspecify.annotations.NullMarked; |
||||
0
module/spring-boot-flyway/src/main/resources/META-INF/spring/org.springframework.boot.jdbc.test.autoconfigure.AutoConfigureDataSourceInitialization.imports → module/spring-boot-flyway/src/main/resources/META-INF/spring/org.springframework.boot.test.autoconfigure.jdbc.AutoConfigureDataSourceInitialization.imports
0
module/spring-boot-flyway/src/main/resources/META-INF/spring/org.springframework.boot.jdbc.test.autoconfigure.AutoConfigureDataSourceInitialization.imports → module/spring-boot-flyway/src/main/resources/META-INF/spring/org.springframework.boot.test.autoconfigure.jdbc.AutoConfigureDataSourceInitialization.imports
2
module/spring-boot-jdbc-test/src/main/resources/META-INF/spring/org.springframework.boot.jdbc.test.autoconfigure.AutoConfigureDataSourceInitialization.imports → module/spring-boot-jdbc-test/src/main/resources/META-INF/spring/org.springframework.boot.test.autoconfigure.jdbc.AutoConfigureDataSourceInitialization.imports
2
module/spring-boot-jdbc-test/src/main/resources/META-INF/spring/org.springframework.boot.jdbc.test.autoconfigure.AutoConfigureDataSourceInitialization.imports → module/spring-boot-jdbc-test/src/main/resources/META-INF/spring/org.springframework.boot.test.autoconfigure.jdbc.AutoConfigureDataSourceInitialization.imports
@ -1 +1 @@
@@ -1 +1 @@
|
||||
org.springframework.boot.jdbc.autoconfigure.DataSourceInitializationAutoConfiguration |
||||
org.springframework.boot.jdbc.autoconfigure.DataSourceInitializationAutoConfiguration |
||||
0
module/spring-boot-liquibase/src/main/resources/META-INF/spring/org.springframework.boot.jdbc.test.autoconfigure.AutoConfigureDataSourceInitialization.imports → module/spring-boot-liquibase/src/main/resources/META-INF/spring/org.springframework.boot.test.autoconfigure.jdbc.AutoConfigureDataSourceInitialization.imports
0
module/spring-boot-liquibase/src/main/resources/META-INF/spring/org.springframework.boot.jdbc.test.autoconfigure.AutoConfigureDataSourceInitialization.imports → module/spring-boot-liquibase/src/main/resources/META-INF/spring/org.springframework.boot.test.autoconfigure.jdbc.AutoConfigureDataSourceInitialization.imports
Loading…
Reference in new issue