Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add JDK 11 and load install-jdk.sh on-the-fly #629

Merged
merged 1 commit into from Apr 28, 2018

Conversation

sormuras
Copy link
Contributor

@sormuras sormuras commented Mar 4, 2018

No more updates needed when new EA feature builds are published or paths to existing archives are changed.

@sormuras sormuras force-pushed the load-install-jdk-on-the-fly branch from 531ea45 to 1a0de16 Compare March 4, 2018 12:39
@sormuras
Copy link
Contributor Author

sormuras commented Mar 4, 2018

Allow JDK 11 builds to fail. error-prone is not there, yet?

bad class file: /modules/java.base/java/io/IOException.class
    class file has wrong version 55.0, should be 53.0

@sormuras
Copy link
Contributor Author

sormuras commented Mar 20, 2018

With the GA of JDK 10 -- http://jdk.java.net/10/ -- the PR needs (a) to be modified a bit and (b) to be merged. There's no longer an "Oracle JDK 10 build"...

Regarding (a): I'm on it. Done.

@sormuras sormuras force-pushed the load-install-jdk-on-the-fly branch from 1a0de16 to e9da3e1 Compare March 20, 2018 18:46
@sormuras
Copy link
Contributor Author

@JakeWharton / @swankjesse -- next build on Travis CI is expected to fail, if this PR is not merged. ./.buildscript/install-jdk.sh is outdated and replaced by this PR, i.e. install-jdk.sh loaded on-the-fly.

@sormuras
Copy link
Contributor Author

@JakeWharton / @swankjesse As expected the build triggered by the merge six days ago failed on Travis CI running on JDK 10.
AFAIR @cushon works on getting error-prone ready for JDK 11

.travis.yml Outdated

before_install:
- unset _JAVA_OPTIONS
- wget https://raw.githubusercontent.com/sormuras/bach/master/install-jdk.sh
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we pin this to a SHA rather than a branch?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'll lose the auto-update feature/service I provide. Oracle/Java.net keep changing the URLs now and then...

The manual loading of install-jdk.sh might be superseded by the integration in Travis CI, soon. See travis-ci/travis-build#1347 for details.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just released 1.0.1. So we may pin it to:

https://github.com/sormuras/bach/raw/1.0.1/install-jdk.sh

Support JDK 10 and 11-ea
@sormuras sormuras force-pushed the load-install-jdk-on-the-fly branch from e9da3e1 to 3c68a05 Compare April 23, 2018 20:02
@sormuras
Copy link
Contributor Author

@JakeWharton Force-pushed a pinned version and removed the outdated install-jdk.sh copy from .buildscript.

@sormuras
Copy link
Contributor Author

sormuras commented Apr 28, 2018

@swankjesse All the red crosses at Travis-CI hurt my testing guts... ❌
https://github.com/square/javapoet/commits/master

Any chance to make the builds happy again by merging this PR? ✔️

@swankjesse swankjesse merged commit c8b9bc8 into square:master Apr 28, 2018
@swankjesse
Copy link
Member

Thanks!

@sormuras sormuras deleted the load-install-jdk-on-the-fly branch April 28, 2018 14:56
@sormuras
Copy link
Contributor Author

You're welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants