language: java
sudo: required
dist: trusty
cache:
  directories:
    - $HOME/.m2/repository

os:
  - linux
  - osx

jdk:
  - oraclejdk8
  - oraclejdk11

matrix:
  include:
    - os: linux
      jdk:
        - openjdk7
        - openjdk8
        - openjdk11
  allow_failures:
    - os: osx
      osx_image: xcode9.3
      jdk: oraclejdk8
    - os: osx
      osx_image: xcode10.1
      jdk: oraclejdk11

script:
  - mvn -Dmaven.javadoc.skip=true -e package -V

language: java
sudo: required
dist: trusty
cache:
  directories:
    - $HOME/.m2/repository

os:
  - linux
  - osx

matrix:
  include:
    - os: linux
      jdk:
        - openjdk7
        - openjdk8
        - openjdk11
        - oraclejdk8
        - oraclejdk11
  allow_failures:
    - os: osx
      osx_image: xcode10.1
      jdk: oraclejdk8
      jdk: oraclejdk11

script:
  - mvn -Dmaven.javadoc.skip=true -e package -V

Add osx to build matrix
Add osx to build matrix