blob: a4dbda2eab5c610b9a6bce40e2a29e2f2e20b402 [file] [log] [blame]
image: eclipse-temurin:21
stages:
- build
# Disable the Gradle daemon for Continuous Integration servers as correctness
# is usually a priority over speed in CI environments. Using a fresh
# runtime for each build is more reliable since the runtime is completely
# isolated from any previous builds.
variables:
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
before_script:
- GRADLE_USER_HOME="$(pwd)/.gradle"
- export GRADLE_USER_HOME
build:
stage: build
script:
- ./gradlew --build-cache clean test shadowJar
artifacts:
paths:
- app/build/libs/korapxmltool.jar
cache:
key: "$CI_COMMIT_REF_NAME"
policy: push
paths:
- build
- .gradle