forked from dapr/java-sdk
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Inject autoconfiguration in the Spring Boot 3 style (dapr#831)
* Bump from spring boot 2.3.5.RELEASE to 2.7.8 Signed-off-by: Sergio <[email protected]> (cherry picked from commit 9152c91) * Ensure old versions of spring boot are still compatible Signed-off-by: Sergio <[email protected]> --------- Signed-off-by: champel <[email protected]> Signed-off-by: Sergio <[email protected]> Signed-off-by: Maciej <[email protected]>
- Loading branch information
Showing
7 changed files
with
66 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,10 +15,28 @@ on: | |
|
||
jobs: | ||
build: | ||
name: "Build jdk:${{ matrix.java }} sb:${{ matrix.spring-boot-version }} exp:${{ matrix.experimental }}" | ||
runs-on: ubuntu-latest | ||
continue-on-error: ${{ matrix.experimental }} | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
java: [ 11, 13, 15, 16 ] | ||
spring-boot-version: [ 2.7.8 ] | ||
experimental: [ false ] | ||
include: | ||
- java: 11 | ||
spring-boot-version: 2.6.14 | ||
experimental: false | ||
- java: 11 | ||
spring-boot-version: 2.5.7 | ||
experimental: false | ||
- java: 11 | ||
spring-boot-version: 2.4.0 | ||
experimental: false | ||
- java: 11 | ||
spring-boot-version: 2.3.6.RELEASE | ||
experimental: false | ||
env: | ||
GOVER: 1.19 | ||
GOOS: linux | ||
|
@@ -92,18 +110,18 @@ jobs: | |
docker-compose -f ./sdk-tests/deploy/local-test-mongo.yml up -d | ||
docker ps | ||
- name: Clean up files | ||
run: mvn clean | ||
run: mvn clean -B | ||
- name: Build sdk | ||
run: mvn compile -q | ||
run: mvn compile -B -q | ||
- name: Unit tests | ||
run: mvn test -q | ||
run: mvn -B test -q | ||
- name: Codecov | ||
uses: codecov/[email protected] | ||
- name: Install jars | ||
run: mvn install -q | ||
- name: Integration tests | ||
run: mvn install -q -B -DskipTests | ||
- name: Integration tests using spring boot version ${{ matrix.spring-boot-version }} | ||
id: integration_tests | ||
run: mvn -f sdk-tests/pom.xml verify | ||
run: PRODUCT_SPRING_BOOT_VERSION=${{ matrix.spring-boot-version }} mvn -B -f sdk-tests/pom.xml verify | ||
- name: Upload test report for sdk | ||
uses: actions/upload-artifact@master | ||
with: | ||
|
@@ -145,7 +163,7 @@ jobs: | |
java-version: ${{ env.JDK_VER }} | ||
- name: Get pom parent version | ||
run: | | ||
PARENT_VERSION=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec) | ||
PARENT_VERSION=$(mvn -B -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec) | ||
echo "PARENT_VERSION=$PARENT_VERSION" >> $GITHUB_ENV | ||
- name: Is SNAPSHOT release ? | ||
if: contains(github.ref, 'master') && contains(env.PARENT_VERSION, '-SNAPSHOT') | ||
|
@@ -157,7 +175,7 @@ jobs: | |
echo "DEPLOY_OSSRH=true" >> $GITHUB_ENV | ||
- name: Install jars | ||
if: env.DEPLOY_OSSRH == 'true' | ||
run: mvn clean install -q | ||
run: mvn clean install -B -q | ||
- name: Publish to ossrh | ||
if: env.DEPLOY_OSSRH == 'true' | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...esources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
io.dapr.springboot.DaprAutoConfiguration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters