Skip to content

Commit

Permalink
[APPENG-849] Add spring boot 3.3 support (#85)
Browse files Browse the repository at this point in the history
* [APPENG-849] Add spring boot 3.3 support

* Remove sb 3.0 and 3.1 support

* Upgrade spring boot version to 3.3.1

* Remove sb 2.7 and add flyway postgres

* Add flyway postgresql as a version defined lib

* Add libraries.postgresql to tkms-starter build.gradle

* Fix postgres flyway package name issue

* Update the changelog latest version date

* Set the default spring boot version to 3.2.2

* set the spring boot version in build.libraries.gradle

* Change gzip expected file size in postgres e2e tests

* Remove conditional addition of flywayMysql

* Change the flywayPostgresql conditional statement to use negate of the previous

* Bump the version to a minor

* Update changelog
  • Loading branch information
Gravewalker666 authored Jul 22, 2024
1 parent c793c42 commit 0a83267
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 9 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@ jobs:
max-parallel: 100
matrix:
spring_boot_version:
- 3.3.1
- 3.2.2
- 3.1.6
- 3.0.13
- 2.7.18
env:
SPRING_BOOT_VERSION: ${{ matrix.spring_boot_version }}
GRADLE_OPTS: "-Djava.security.egd=file:/dev/./urandom -Dorg.gradle.parallel=true"
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.29.0] - 2024-07-16

### Added

- Added Spring Boot 3.3 support.

### Removed
- Removed support for spring boot 3.1 and 2.7.

## [0.28.3] - 2024-02-20

### Changed
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import org.eclipse.jgit.api.errors.RefAlreadyExistsException

buildscript {
if (!project.hasProperty("springBootVersion")) {
ext.springBootVersion = System.getenv("SPRING_BOOT_VERSION") ?: "2.7.18"
ext.springBootVersion = System.getenv("SPRING_BOOT_VERSION") ?: "3.2.2"
}
dependencies {
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.4'
Expand Down
3 changes: 2 additions & 1 deletion build.libraries.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ext {
protobufVersion = "3.24.0"
springBootVersion = "${System.getenv("SPRING_BOOT_VERSION") ?: '2.7.18'}"
springBootVersion = "${System.getenv("SPRING_BOOT_VERSION") ?: '3.2.2'}"
libraries = [
// version defined
awaitility : 'org.awaitility:awaitility:4.2.0',
Expand Down Expand Up @@ -31,6 +31,7 @@ ext {
commonsLang3 : 'org.apache.commons:commons-lang3',
flywayCore : 'org.flywaydb:flyway-core',
flywayMysql : 'org.flywaydb:flyway-mysql',
flywayPostgresql : 'org.flywaydb:flyway-database-postgresql',
jacksonDatabind : 'com.fasterxml.jackson.core:jackson-databind',
kafkaClients : 'org.apache.kafka:kafka-clients',
lombok : 'org.projectlombok:lombok',
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=0.28.3
version=0.29.0
6 changes: 4 additions & 2 deletions tw-tkms-starter/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,11 @@ dependencies {
testImplementation project(":tw-tkms-test-starter")

testImplementation libraries.awaitility
if (!springBootVersion.startsWith("2.6")) {
testImplementation libraries.flywayMysql
// If we are running on spring boot 3.3 or newer then we need to use the flyway-postgresql dependency.
if (!springBootVersion.startsWith("3.2")) {
testImplementation libraries.flywayPostgresql
}
testImplementation libraries.flywayMysql
testImplementation libraries.flywayCore
testImplementation libraries.lombok
testImplementation libraries.springBootStarterActuator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ private static Stream<Arguments> compressionInput() {
var arguments = new ArrayList<Arguments>();

for (var deferUntilCommit : deferUntilCommits) {
arguments.add(Arguments.of(CompressionAlgorithm.GZIP, 112, 111, deferUntilCommit));
arguments.add(Arguments.of(CompressionAlgorithm.GZIP, 111, 110, deferUntilCommit));
arguments.add(Arguments.of(CompressionAlgorithm.NONE, 1172, 1171, deferUntilCommit));
arguments.add(Arguments.of(CompressionAlgorithm.LZ4, 135, 134, deferUntilCommit));
arguments.add(Arguments.of(CompressionAlgorithm.SNAPPY, 164, 160, deferUntilCommit));
Expand Down

0 comments on commit 0a83267

Please sign in to comment.