language: java
install: true
jdk:
  - oraclejdk8

notifications:
  email:
    recipients:
      - jpd.sousa@campus.fct.unl.pt
    on_success: never # default: change
    on_failure: always # default: always
script: 
  - mvn clean verify

after_success:
  - bash <(curl -s https://codecov.io/bash)
language: java
install: true
jdk:
  - openjdk8

notifications:
  email:
    recipients:
      - jpd.sousa@campus.fct.unl.pt
    on_success: never # default: change
    on_failure: always # default: always
script: 
  - mvn clean verify

after_success:
  - bash <(curl -s https://codecov.io/bash)

Use openjdk8 instead of oracle
Use openjdk8 instead of oracle