Marc Kupietz | c739e9d | 2024-03-07 16:24:03 +0100 | [diff] [blame] | 1 | image: eclipse-temurin:17 |
| 2 | |
| 3 | stages: |
| 4 | - build |
| 5 | |
| 6 | # Disable the Gradle daemon for Continuous Integration servers as correctness |
| 7 | # is usually a priority over speed in CI environments. Using a fresh |
| 8 | # runtime for each build is more reliable since the runtime is completely |
| 9 | # isolated from any previous builds. |
| 10 | variables: |
| 11 | GRADLE_OPTS: "-Dorg.gradle.daemon=false" |
| 12 | |
| 13 | before_script: |
| 14 | - GRADLE_USER_HOME="$(pwd)/.gradle" |
| 15 | - export GRADLE_USER_HOME |
| 16 | |
| 17 | build: |
| 18 | stage: build |
| 19 | script: |
| 20 | - ./gradlew --build-cache build |
| 21 | artifacts: |
| 22 | paths: |
| 23 | - app/build/libs/korapxml2conllu.jar |
| 24 | cache: |
| 25 | key: "$CI_COMMIT_REF_NAME" |
| 26 | policy: push |
| 27 | paths: |
| 28 | - build |
| 29 | - .gradle |