sudo: false

install: true

cache:
  directories:
    - '$HOME/.m2/repository'
    - '$HOME/.sonar/cache'
    - '$HOME/.sonar/installs'

language: java

jdk:
  - oraclejdk8

addons:
  sonarqube: true

script:
  - openssl aes-256-cbc -K $GPG_PASSPHRASE -in codesigning.asc.enc -out codesigning.asc -d
  - gpg --fast-import codesigning.asc
  - mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent verify sonar:sonar -Dsonar.host.url=https://sonarqube.com -Dsonar.login=$SONAR_TOKEN -Dsonar.organization=$SONAR_ORGANIZATION -Dgpg.passphrase=$GPG_PASSPHRASE

deploy:
  provider: releases
  api_key: $GITHUB_OAUTH_TOKEN
  file_glob: true
  file: 'target/simple-jmx-*.jar'
  skip_cleanup: true
  on:
    tags: true
sudo: false

install: true

cache:
  directories:
    - '$HOME/.m2/repository'
    - '$HOME/.sonar/cache'
    - '$HOME/.sonar/installs'

language: java

jdk:
  - oraclejdk8

addons:
  sonarqube: true

script:
  - openssl aes-256-cbc -k $GPG_PASSPHRASE -in codesigning.asc.enc -out codesigning.asc -d
  - gpg --fast-import codesigning.asc
  - mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent verify sonar:sonar -Dsonar.host.url=https://sonarqube.com -Dsonar.login=$SONAR_TOKEN -Dsonar.organization=$SONAR_ORGANIZATION -Dgpg.passphrase=$GPG_PASSPHRASE

deploy:
  provider: releases
  api_key: $GITHUB_OAUTH_TOKEN
  file_glob: true
  file: 'target/simple-jmx-*.jar'
  skip_cleanup: true
  on:
    tags: true
Prepare build for deployment to the central repository
Prepare build for deployment to the central repository
