Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you specify minor jdk version for travis ci

Is it possible to specify the minor version of the JDK for jobs running on Travis? I have a JavaFX project which is failing because JDK 1.8.0_31 is being used to perform the build where as the project uses some classes that were only shipped in Java 1.8.0_40 (specifically Alert and Spinner).

Currently my .travis.yml file looks like below:

language: java

jdk:
  - oraclejdk8

Here's a link to the failed build just in case it's useful.

like image 705
bmooney Avatar asked Apr 14 '15 20:04

bmooney


People also ask

Which of the following networking tools are supported by Travis CI?

Travis CI Features: Support for 21 languages like Android, C, C#, C++, Java, JavaScript (with Node. js), Perl, PHP, Python, R, Ruby, etc. Pre-installed build & test tools. Available services – databases, message queues, etc.


1 Answers

This solution based on apt addon works for me:

language: java

jdk:
  - oraclejdk8

addons:
  apt:
    packages:
      - oracle-java8-installer

In result I have java version "1.8.0_91". The solution source is here

like image 94
Andriy Kryvtsun Avatar answered Oct 27 '22 00:10

Andriy Kryvtsun