language: java
install: true
sudo: required

addons:
  apt:
    packages:
    - docker-ce

services:
  - docker

before_install:
  - docker run -d -p 5000:5000 --restart=always --name registry registry:2

jdk: openjdk8

jobs:
  include:
    - stage: all tests
      script: ./gradlew build -s
    - stage: release
      script: skip
      deploy:
        provider: script
        script: ./gradlew -s clean assemble bintrayUpload gitPublishPush -Dorg.ajoberstar.grgit.auth.username=$GH_TOKEN
        on:
          tags: true

before_cache:
  - rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock
  - rm -fr $HOME/.gradle/caches/*/plugin-resolution/

cache:
  directories:
    - $HOME/.gradle/caches/
    - $HOME/.gradle/wrapper/

language: java
install: true
sudo: required

addons:
  apt:
    packages:
    - docker-ce

services:
  - docker

before_install:
  - docker run -d -p 5000:5000 --restart=always --name registry registry:2

jdk: openjdk11

jobs:
  include:
    - stage: all tests
      script: ./gradlew build -s
    - stage: release
      script: skip
      deploy:
        provider: script
        script: ./gradlew -s clean assemble bintrayUpload gitPublishPush -Dorg.ajoberstar.grgit.auth.username=$GH_TOKEN
        on:
          tags: true

before_cache:
  - rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock
  - rm -fr $HOME/.gradle/caches/*/plugin-resolution/

cache:
  directories:
    - $HOME/.gradle/caches/
    - $HOME/.gradle/wrapper/

Upgrade to latest JDK LTS release
Upgrade to latest JDK LTS release
