forked from DiscordBots/lilJudd
35 lines
580 B
YAML
35 lines
580 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
|
|
|
|
publish:
|
|
only:
|
|
- tags
|
|
stage: publish
|
|
script:
|
|
- gradle publish
|