Skip to content

Commit

Permalink
Merge pull request #99 from zalando-stups/spring6
Browse files Browse the repository at this point in the history
Spring 6 and 5 compatibility
  • Loading branch information
lukasniemeier-zalando authored Jan 8, 2024
2 parents ba0eca3 + 193daa5 commit 5d47c2f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,19 @@ env:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
profile: ['', 'spring5']
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 11
java-version: 17
cache: 'maven'
- name: Compile
run: ./mvnw clean javadoc:javadoc package -DskipTests
- name: Test
run: ./mvnw verify -P integration-test -B
run: ./mvnw verify -P "${{ matrix.profile }}" -P integration-test -B
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
![Build Status](https://github.com/zalando-stups/baigan-config/workflows/build/badge.svg)
[![Maven Central](https://img.shields.io/maven-central/v/org.zalando/baigan-config.svg)](https://maven-badges.herokuapp.com/maven-central/org.zalando/baigan-config)

Baigan configuration is an easy to use configuration framework for [Spring](https://spring.io/) based applications.
Baigan configuration is an easy-to-use configuration framework for [Spring](https://spring.io/) based applications.

What makes Baigan a rockstar configuration framework ?

Expand All @@ -14,8 +14,8 @@ What makes Baigan a rockstar configuration framework ?
* AWS S3

## Prerequisites
- Java 11
- Spring framework
- Java 17+
- Spring Framework 6 (backwards compatible to 5)
- AWS SDK

## Getting started
Expand Down
15 changes: 10 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,12 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.release>11</maven.compiler.release> <!-- ensure Spring 5 compatibility -->
<spring6.version>6.1.2</spring6.version>
<spring5.version>5.3.31</spring5.version>
<spring.version>${spring6.version}</spring.version>
<jackson.version>2.15.1</jackson.version>
<junit.version>5.9.3</junit.version>
<spring.version>5.3.27</spring.version>
<guava.version>32.0.1-jre</guava.version>
<slf4j.version>2.0.7</slf4j.version>
<mockito.version>5.3.1</mockito.version>
Expand Down Expand Up @@ -82,10 +85,6 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<configuration>
<source>11</source>
<target>11</target>
</configuration>
</plugin>
</plugins>
</pluginManagement>
Expand Down Expand Up @@ -215,6 +214,12 @@
</dependencies>

<profiles>
<profile>
<id>spring5</id>
<properties>
<spring.version>${spring5.version}</spring.version>
</properties>
</profile>
<profile>
<id>release</id>
<build>
Expand Down

0 comments on commit 5d47c2f

Please sign in to comment.