image: java:8-jdk variables: GRADLE_OPTS: "-Dorg.gradle.daemon=false" NEXUS_CREDENTIALS: "-Pnexususer=$NEXUS_REPO_USER -Pnexuspass=$NEXUS_REPO_PASS" before_script: - export GRADLE_USER_HOME=`pwd`/.gradle - ./gradlew wrapper --distribution-type=bin cache: paths: - .gradle/wrapper - .gradle/caches stages: - test - build - deploy test: stage: test script: - ./gradlew check build: stage: build script: ./gradlew assemble artifacts: paths: - dariahsp-core/bin/build/libs/*.jar - dariahsp-sample-boot/bin/build/libs/*.jar deploy: stage: deploy script: - ./gradlew publish -x test $NEXUS_CREDENTIALS only: - v2.0