language: java

addons:
  apt:
    packages:
    - junit4
    
install: true

script: ant -lib /usr/share/java/junit4.jar clean all

jdk:
  - oraclejdk8

sudo: required
dist: trusty

language: java

addons:
  apt:
    packages:
    - junit4
    
install: true

script: ant -lib /usr/share/java/junit4.jar clean all

jdk:
  - oraclejdk8

Switch to the trusty beta
Switch to the trusty beta

Hopefully to pick up the later ant version.