Skip to content

Commit 637cdc4

Browse files
committed
set kotlin versions to pair with spring-boot versions
1 parent f90071a commit 637cdc4

1 file changed

Lines changed: 15 additions & 4 deletions

File tree

.github/workflows/spring-boot-4-matrix.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,15 @@ jobs:
2121
strategy:
2222
fail-fast: false
2323
matrix:
24-
springboot-version: [ '4.0.0', '4.0.5', '4.1.0' ]
25-
26-
name: Spring Boot ${{ matrix.springboot-version }}
24+
include:
25+
- springboot-version: '4.0.0'
26+
kotlin-version: '2.2.0'
27+
- springboot-version: '4.0.5'
28+
kotlin-version: '2.2.21'
29+
- springboot-version: '4.1.0'
30+
kotlin-version: '2.3.21'
31+
32+
name: Spring Boot ${{ matrix.springboot-version }} / Kotlin ${{ matrix.kotlin-version }}
2733
env:
2834
SENTRY_URL: http://127.0.0.1:8000
2935
GRADLE_ENCRYPTION_KEY: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
@@ -62,11 +68,16 @@ jobs:
6268
with:
6369
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
6470

65-
- name: Update Spring Boot 4.x version
71+
- name: Update Spring Boot 4.x and Kotlin versions
6672
run: |
6773
springboot_version="${{ matrix.springboot-version }}"
74+
kotlin_version="${{ matrix.kotlin-version }}"
75+
6876
perl -0pi -e 'BEGIN { $v = shift } s/^springboot4[[:space:]]*=[[:space:]]*"\K[^"]*/$v/m or die "::error::springboot4 version entry not found in gradle/libs.versions.toml\n"' "$springboot_version" gradle/libs.versions.toml
77+
perl -0pi -e 'BEGIN { $v = shift } s/^kotlin[[:space:]]*=[[:space:]]*"\K[^"]*/$v/m or die "::error::kotlin version entry not found in gradle/libs.versions.toml\n"' "$kotlin_version" gradle/libs.versions.toml
78+
6979
echo "Updated Spring Boot 4.x version to $springboot_version"
80+
echo "Updated Kotlin version to $kotlin_version"
7081
7182
- name: Build sample artifacts
7283
run: |

0 commit comments

Comments
 (0)