Skip to content

Commit

Permalink
use java 17 executor
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyjames committed Oct 12, 2023
1 parent 735ec68 commit e028d2e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ parameters:
machine_image:
type: string
default: ubuntu-2004:202201-02
executors:
java17:
docker:
- image: 'cimg/openjdk:17.0.8'
commands:
run-sample:
description: "Build and run the sample"
Expand All @@ -20,6 +24,7 @@ commands:
name: Assemble
working_directory: <<parameters.sample>>
command: ./gradlew clean build
executor: java17
- save_cache:
key: v1-dependencies{{ checksum "<<parameters.sample>>/build.gradle" }}
paths:
Expand All @@ -39,6 +44,7 @@ commands:
working_directory: <<parameters.sample>>
command: ./gradlew bootRun
background: true
executor: java17
- run:
name: Wait until server is online
command: |
Expand Down

0 comments on commit e028d2e

Please sign in to comment.