31 lines
728 B
YAML
31 lines
728 B
YAML
image: gradle:jdk16
|
|
|
|
variables:
|
|
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
|
|
|
|
before_script:
|
|
- export GRADLE_USER_HOME=`pwd`/.gradle
|
|
|
|
build_test:
|
|
stage: deploy
|
|
script:
|
|
- gradle --build-cache build -Pflavor=fat
|
|
- gradle --build-cache build -Pflavor=windows
|
|
- gradle --build-cache build -Pflavor=linux
|
|
- gradle --build-cache build -Pflavor=macos
|
|
- cp build/libs/*-*-*.jar ./
|
|
- cp build/libs/*.exe ./
|
|
- for f in *-*-*.jar; do mv "$f" "latest-${f##*-}";done
|
|
- mv latest-fat.jar latest.jar
|
|
- mv *-*.exe latest.exe
|
|
artifacts:
|
|
paths:
|
|
- build/libs
|
|
- latest.jar
|
|
- latest.exe
|
|
- latest-linux.jar
|
|
- latest-macos.jar
|
|
- latest-windows.jar
|
|
only:
|
|
- master
|