blob: 24d366dc1ff4fcbdcc59c0084d5945d033fc57b6 [file] [log] [blame]
Marc Kupietzc739e9d2024-03-07 16:24:03 +01001image: eclipse-temurin:17
2
3stages:
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.
10variables:
11 GRADLE_OPTS: "-Dorg.gradle.daemon=false"
12
13before_script:
14 - GRADLE_USER_HOME="$(pwd)/.gradle"
15 - export GRADLE_USER_HOME
16
17build:
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