File tree Expand file tree Collapse file tree 17 files changed +183
-108
lines changed
infobip-spring-data-common
infobip-spring-data-jdbc-annotation-processor-common
infobip-spring-data-jdbc-annotation-processor
infobip-spring-data-jdbc-querydsl-boot-starter
infobip-spring-data-jdbc-querydsl
src/test/java/com/infobip/spring/data/jdbc
infobip-spring-data-jpa-querydsl-boot-starter
src/test/java/com/infobip/spring/data/jpa
infobip-spring-data-jpa-querydsl
src/test/java/com/infobip/spring/data/jpa
infobip-spring-data-r2dbc-querydsl-boot-starter
src/test/java/com/infobip/spring/data/r2dbc
infobip-spring-data-r2dbc-querydsl
src/test/java/com/infobip/spring/data/r2dbc Expand file tree Collapse file tree 17 files changed +183
-108
lines changed Original file line number Diff line number Diff line change 1+ ### 10.0.0
2+ * upgraded to Spring Boot 4
3+
14### 9.2.0
25* Added BOM (Bill of materials)
36
Original file line number Diff line number Diff line change 44
55 <groupId >com.infobip</groupId >
66 <artifactId >infobip-spring-data-bom</artifactId >
7- <version >9.2.1 -SNAPSHOT</version >
7+ <version >10.0.0 -SNAPSHOT</version >
88 <packaging >pom</packaging >
99
1010 <name >Infobip Spring Data Querydsl</name >
5252 </developers >
5353
5454 <properties >
55- <maven-gpg-plugin .version>3.1.0 </maven-gpg-plugin .version>
55+ <maven-gpg-plugin .version>4.0.0-RC2 </maven-gpg-plugin .version>
5656 </properties >
5757
5858 <dependencyManagement >
Original file line number Diff line number Diff line change 55 <parent >
66 <groupId >com.infobip</groupId >
77 <artifactId >infobip-spring-data-querydsl</artifactId >
8- <version >9.2.1 -SNAPSHOT</version >
8+ <version >10.0.0 -SNAPSHOT</version >
99 </parent >
1010
1111 <artifactId >infobip-spring-data-common</artifactId >
Original file line number Diff line number Diff line change 55 <parent >
66 <groupId >com.infobip</groupId >
77 <artifactId >infobip-spring-data-querydsl</artifactId >
8- <version >9.2.1 -SNAPSHOT</version >
8+ <version >10.0.0 -SNAPSHOT</version >
99 </parent >
1010
1111 <artifactId >infobip-spring-data-jdbc-annotation-processor-common</artifactId >
Original file line number Diff line number Diff line change 55 <parent >
66 <groupId >com.infobip</groupId >
77 <artifactId >infobip-spring-data-querydsl</artifactId >
8- <version >9.2.1 -SNAPSHOT</version >
8+ <version >10.0.0 -SNAPSHOT</version >
99 </parent >
1010
1111 <artifactId >infobip-spring-data-jdbc-annotation-processor</artifactId >
Original file line number Diff line number Diff line change 55 <parent >
66 <groupId >com.infobip</groupId >
77 <artifactId >infobip-spring-data-querydsl</artifactId >
8- <version >9.2.1 -SNAPSHOT</version >
8+ <version >10.0.0 -SNAPSHOT</version >
99 </parent >
1010
1111 <artifactId >infobip-spring-data-jdbc-querydsl-boot-starter</artifactId >
Original file line number Diff line number Diff line change 66 <parent >
77 <groupId >com.infobip</groupId >
88 <artifactId >infobip-spring-data-querydsl</artifactId >
9- <version >9.2.1 -SNAPSHOT</version >
9+ <version >10.0.0 -SNAPSHOT</version >
1010 </parent >
1111
1212 <artifactId >infobip-spring-data-jdbc-querydsl</artifactId >
Original file line number Diff line number Diff line change 1+ package com .infobip .spring .data .jdbc ;
2+
3+ import org .flywaydb .core .Flyway ;
4+ import org .springframework .boot .autoconfigure .flyway .FlywayMigrationStrategy ;
5+ import org .springframework .context .annotation .Bean ;
6+ import org .springframework .context .annotation .Configuration ;
7+
8+ @ Configuration
9+ public class TestConfiguration {
10+
11+ @ Bean
12+ public FlywayMigrationStrategy clean () {
13+ return flyway -> {
14+ // Rebuild Flyway with clean enabled for tests
15+ Flyway cleanFlyway = Flyway .configure ()
16+ .configuration (flyway .getConfiguration ())
17+ .cleanDisabled (false )
18+ .load ();
19+
20+ cleanFlyway .clean ();
21+ flyway .migrate ();
22+ };
23+ }
24+ }
Original file line number Diff line number Diff line change 55 <parent >
66 <groupId >com.infobip</groupId >
77 <artifactId >infobip-spring-data-querydsl</artifactId >
8- <version >9.2.1 -SNAPSHOT</version >
8+ <version >10.0.0 -SNAPSHOT</version >
99 </parent >
1010
1111 <artifactId >infobip-spring-data-jpa-querydsl-boot-starter</artifactId >
Original file line number Diff line number Diff line change 1+ package com .infobip .spring .data .jpa ;
2+
3+ import org .flywaydb .core .Flyway ;
4+ import org .springframework .boot .autoconfigure .flyway .FlywayMigrationStrategy ;
5+ import org .springframework .context .annotation .Bean ;
6+ import org .springframework .context .annotation .Configuration ;
7+
8+ @ Configuration
9+ public class TestConfiguration {
10+
11+ @ Bean
12+ public FlywayMigrationStrategy clean () {
13+ return flyway -> {
14+ // Rebuild Flyway with clean enabled for tests
15+ Flyway cleanFlyway = Flyway .configure ()
16+ .configuration (flyway .getConfiguration ())
17+ .cleanDisabled (false )
18+ .load ();
19+
20+ cleanFlyway .clean ();
21+ flyway .migrate ();
22+ };
23+ }
24+ }
You can’t perform that action at this time.
0 commit comments