---
language: java
env:
  - MAVEN_VERSION=3.0.5
  - MAVEN_VERSION=3.1.1
  - MAVEN_VERSION=3.2.5
  - MAVEN_VERSION=3.3.9

install:
  - "mvn -N io.takari:maven:wrapper -Dmaven=${MAVEN_VERSION}"
  - "./mvnw --show-version --errors --batch-mode test-compile dependency:go-offline"
script:
  - "./mvnw --show-version --errors --batch-mode -Prun-its clean verify"

jdk:
 - oraclejdk8
 - oraclejdk7
 - openjdk7
 - openjdk6

---
language: java
env:
  - MAVEN_VERSION=3.0.5
  - MAVEN_VERSION=3.1.1
  - MAVEN_VERSION=3.2.5
  - MAVEN_VERSION=3.3.9

install:
  - "mvn -N io.takari:maven:wrapper -Dmaven=${MAVEN_VERSION}"
  - "./mvnw --show-version --errors --batch-mode test-compile dependency:go-offline"
script:
  - "./mvnw --show-version --errors --batch-mode -Prun-its clean verify"

jdk:
 - oraclejdk8
 - oraclejdk7
 - openjdk7
 - openjdk6

matrix:
  exclude:
    - jdk: oraclejdk6
      env: MAVEN_VERSION=3.3.9

Exclude jdk 6 with Maven 3.3.9 cause Maven 3.3.9 is JDK7 minimum.
Exclude jdk 6 with Maven 3.3.9 cause
Maven 3.3.9 is JDK7 minimum.
