From b256ccb045983a8bbd47cc9af330bcfa4de02454 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arne=20J=C3=B8rgensen?= Date: Thu, 7 Jan 2016 22:01:22 +0100 Subject: [PATCH] Document Java 8 as requirement. --- .travis.yml | 1 + README.md | 6 +++--- .../swagger-codegen/src/main/resources/perl/README.mustache | 2 +- .../swagger-codegen/src/main/resources/perl/Role.mustache | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4adb22f693e..48d29eb3396 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,7 @@ sudo: required language: java jdk: - oraclejdk7 + - oraclejdk8 services: - docker diff --git a/README.md b/README.md index aaef6aad31c..b5c6a769460 100644 --- a/README.md +++ b/README.md @@ -78,16 +78,16 @@ brew install swagger-codegen To build from source, you need the following installed and available in your $PATH: -* [Java 7](http://java.oracle.com) +* [Java 7 or 8](http://java.oracle.com) * [Apache maven 3.0.3 or greater](http://maven.apache.org/) #### OS X Users -Don't forget to install Java 7. You probably have 1.6 or 1.8. +Don't forget to install Java 7 or 8. You probably have 1.6. Export JAVA_HOME in order to use the supported Java version: ``` -export JAVA_HOME=`/usr/libexec/java_home -v 1.7` +export JAVA_HOME=`/usr/libexec/java_home -v 1.8` export PATH=${JAVA_HOME}/bin:$PATH ``` diff --git a/modules/swagger-codegen/src/main/resources/perl/README.mustache b/modules/swagger-codegen/src/main/resources/perl/README.mustache index d6a7b379716..62d57f6b3cf 100644 --- a/modules/swagger-codegen/src/main/resources/perl/README.mustache +++ b/modules/swagger-codegen/src/main/resources/perl/README.mustache @@ -162,7 +162,7 @@ you could also call them on class names. See the homepage `https://github.com/swagger-api/swagger-codegen` for full details. But briefly, clone the git repository, build the codegen codebase, set up your build -config file, then run the API build script. You will need git, Java 7 and Apache +config file, then run the API build script. You will need git, Java 7 or 8 and Apache maven 3.0.3 or better already installed. The config file should specify the project name for the generated library: diff --git a/modules/swagger-codegen/src/main/resources/perl/Role.mustache b/modules/swagger-codegen/src/main/resources/perl/Role.mustache index 499037dfea8..fb343ccb890 100644 --- a/modules/swagger-codegen/src/main/resources/perl/Role.mustache +++ b/modules/swagger-codegen/src/main/resources/perl/Role.mustache @@ -264,7 +264,7 @@ you could also call them on class names. See the homepage C for full details. But briefly, clone the git repository, build the codegen codebase, set up your build -config file, then run the API build script. You will need git, Java 7 and Apache +config file, then run the API build script. You will need git, Java 7 or 8 and Apache maven 3.0.3 or better already installed. The config file should specify the project name for the generated library: