language: java
jdk:
  - oraclejdk8
script: ./gradlew check
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/
notifications:
    slack: minibilles:2dXpzGnWFnhbU9WrAEwIPn7g

deploy:
  provider: bintray
#  on: production
  file: 'build/descriptor/descriptor.json'
  user: $BINTRAY_API_USER
  key: $BINTRAY_API_KEY

language: java
jdk:
  - oraclejdk8
script: ./gradlew descriptor publish
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/
notifications:
    slack: minibilles:2dXpzGnWFnhbU9WrAEwIPn7g

deploy:
  provider: bintray
#  on: production
  file: 'build/descriptor/descriptor.json'
  user: $BINTRAY_API_USER
  key: $BINTRAY_API_KEY

Build descriptor and publish files
Build descriptor and publish files
