language: java
jdk:
- oraclejdk8

before_install:
- openssl aes-256-cbc -K $encrypted_f27c25e9ddd8_key -iv $encrypted_f27c25e9ddd8_iv
  -in oss_secring.gpg.enc -out oss_secring.gpg -d

install:
- ./gradlew clean test assemble uploadArchives
language: java
jdk:
- oraclejdk8

stages:
  - name: build
    script:
      - ./gradlew clean assemble
  - name: test
    script:
      - ./gradlew test
  - name: deploy
    if: branch =~ ^draft OR tag =~ ^v
    script:
      - openssl aes-256-cbc -K $encrypted_f27c25e9ddd8_key -iv $encrypted_f27c25e9ddd8_iv -in oss_secring.gpg.enc -out oss_secring.gpg -d
      - ./gradlew uploadArchives
Test out build stages to avoid undesired builds and uploads.
Test out build stages to avoid undesired builds and uploads.
