Update Gradle to v9 #155
This file contains hidden or 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
| name: Build | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| jobs: | |
| kotlin-1_9: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| kotlin: [ 1.9.24 ] | |
| ksp: [ 1.0.20 ] | |
| komapper: [ 1.18.1, 2.0.0, 2.1.0, 2.2.2 ] | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
| - name: Set up JDK | |
| uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: 11 | |
| - name: Assemble and Check | |
| uses: gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa # v2 | |
| with: | |
| gradle-version: 6.8.3 | |
| arguments: | | |
| assemble | |
| check | |
| -PkomapperVersion=${{ matrix.komapper }} | |
| -PkotlinVersion=${{ matrix.kotlin }} | |
| -PkspVersion=${{ matrix.ksp }} | |
| - name: Upload reports | |
| if: failure() | |
| uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4 | |
| with: | |
| name: build | |
| path: ./**/build/reports | |
| kotlin-2_0: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| kotlin: [ 2.0.21 ] | |
| ksp: [ 1.0.28 ] | |
| komapper: [ 2.0.0, 2.1.0, 2.2.2, 3.1.0, 4.0.0, 5.0.0, 5.1.0, 5.2.1 ] | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
| - name: Set up JDK | |
| uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: 11 | |
| - name: Assemble and Check | |
| uses: gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa # v2 | |
| with: | |
| gradle-version: 7.6.4 | |
| arguments: | | |
| assemble | |
| check | |
| -PkomapperVersion=${{ matrix.komapper }} | |
| -PkotlinVersion=${{ matrix.kotlin }} | |
| -PkspVersion=${{ matrix.ksp }} | |
| - name: Upload reports | |
| if: failure() | |
| uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4 | |
| with: | |
| name: build | |
| path: ./**/build/reports | |
| kotlin-2_0-useKSP2: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| kotlin: [ 2.0.21 ] | |
| ksp: [ 1.0.28 ] | |
| komapper: [ 2.0.0, 2.1.0, 2.2.2, 3.1.0, 4.0.0, 5.0.0, 5.1.0, 5.2.1 ] | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
| - name: Set up JDK | |
| uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: 11 | |
| - name: Assemble and Check | |
| uses: gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa # v2 | |
| with: | |
| gradle-version: 7.6.4 | |
| arguments: | | |
| assemble | |
| check | |
| -PkomapperVersion=${{ matrix.komapper }} | |
| -PkotlinVersion=${{ matrix.kotlin }} | |
| -PkspVersion=${{ matrix.ksp }} | |
| -Pksp.useKSP2=true | |
| - name: Upload reports | |
| if: failure() | |
| uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4 | |
| with: | |
| name: build | |
| path: ./**/build/reports | |
| kotlin-2_1: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| kotlin: [ 2.1.10 ] | |
| ksp: [ 1.0.31 ] | |
| komapper: [ 5.0.0, 5.1.0, 5.2.1 ] | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
| - name: Set up JDK | |
| uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: 11 | |
| - name: Assemble and Check | |
| uses: gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa # v2 | |
| with: | |
| gradle-version: 7.6.4 | |
| arguments: | | |
| assemble | |
| check | |
| -PkomapperVersion=${{ matrix.komapper }} | |
| -PkotlinVersion=${{ matrix.kotlin }} | |
| -PkspVersion=${{ matrix.ksp }} | |
| -Pksp.useKSP2=true | |
| - name: Upload reports | |
| if: failure() | |
| uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4 | |
| with: | |
| name: build | |
| path: ./**/build/reports |