language: java

os:
  - linux

dist: trusty

addons:
  sonarcloud:
    organization: "hobynye"
    token: ${SONAR_TOKEN}

jdk:
  - oraclejdk8
  - oraclejdk9
  - oraclejdk11

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/"

before_install:
  - chmod -R +x .

script:
  - ./gradlew sonarqube
  - ./gradlew check

deploy:
  provider: releases
  token: ${GITHUB_TOKEN}
  file:
    - "build/**/thank-you-matcher-*.zip"
    - "build/**/thank-you-matcher=*-sources.jar"
    - "build/**/thank-you-matcher=*-javadoc.jar"
  draft: true
  on:
    branch: master

language: java

os: linux
dist: trusty

git:
  depth: false

addons:
  sonarcloud:
    organization: "hobynye"
    token: ${SONAR_TOKEN}

jdk:
  - oraclejdk8
  - oraclejdk9
  - oraclejdk11

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/"

before_install:
  - chmod -R +x .

script:
  - ./gradlew sonarqube

deploy:
  provider: releases
  token: ${GITHUB_TOKEN}
  file:
    - "build/**/thank-you-matcher-*.zip"
    - "build/**/thank-you-matcher=*-sources.jar"
    - "build/**/thank-you-matcher=*-javadoc.jar"
  draft: true
  on:
    branch: master

Change git depth to all commits
Change git depth to all commits
