Skip to content

Commit

Permalink
fix: imporve gradlew build and use java 17
Browse files Browse the repository at this point in the history
  • Loading branch information
alarv committed May 30, 2024
1 parent 048ac06 commit 2dea1a3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,20 @@ jobs:
with:
images: upcintua/jaqpot-test

- name: Setup Gradle
uses: gradle/gradle-build-action@v3

- name: Update version in build.gradle.kts
run: >-
sed -i "s#{{VERSION_PLACEHOLDER}}#${{ steps.meta.outputs.tags }}#g" build.gradle.kts
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build with Gradle
run: ./gradlew build
- name: Build docker image
run: |
./gradlew build
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ openApiGenerate {
// Dockerize
tasks.named<BootBuildImage>("bootBuildImage") {
environment.set(
mapOf("BP_JVM_VERSION" to "21")
mapOf("BP_JVM_VERSION" to "17")
)
imageName = "upcintua/jaqpot-api"
}
Expand Down

0 comments on commit 2dea1a3

Please sign in to comment.