forked from DiscordBots/lilJudd
38 lines
602 B
YAML
38 lines
602 B
YAML
#image: ${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/gradle
|
|
image: gradle
|
|
|
|
stages:
|
|
- build
|
|
- publish
|
|
|
|
variables:
|
|
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
|
|
GIT_SUBMODULE_STRATEGY: recursive
|
|
|
|
before_script:
|
|
- export GRADLE_USER_HOME=`pwd`/.gradle
|
|
- rm -f .gradle/caches/modules-2/modules-2.lock
|
|
- rm -fr .gradle/caches/*/plugin-resolution/
|
|
|
|
cache:
|
|
paths:
|
|
- .gradle/wrapper
|
|
- .gradle/caches
|
|
- build
|
|
|
|
build:
|
|
only:
|
|
- tags
|
|
stage: build
|
|
script:
|
|
- gradle shadowJar
|
|
except:
|
|
- tags
|
|
|
|
publish:
|
|
only:
|
|
- tags
|
|
stage: publish
|
|
script:
|
|
- gradle publish
|
|
|