Skip to content

Use install-jdk.sh for AdoptOpenJDK #370

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

Merged
merged 1 commit into from
Nov 29, 2019
Merged

Conversation

ashawley
Copy link
Member

Fixes #369 by dropping SDKMAN! and using install-jdk.sh:

https://github.com/sormuras/bach#install-jdksh

@lrytz
Copy link
Member

lrytz commented Nov 22, 2019

Generally, I have no strong feelings about which tool to use to install the JKD. What I care about is:

  • use AdoptOpenJDK
  • have one way to do it across all scala modules, and also scala/scala itself


script: ./build.sh
script:
- export JAVA_HOME=$HOME/$TRAVIS_JDK_VERSION
Copy link
Member

Choose a reason for hiding this comment

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

Is JAVA_HOME necessary here? I avoid it because having JAVA_HOME causes subtle difference in the way sbt behaves with Java code.

Copy link
Member Author

Choose a reason for hiding this comment

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

To be honest, I'm just following directions:

https://docs.travis-ci.com/user/languages/java/#switching-jdks-to-java-10-and-up-within-one-job

I presume these incantations are needed because how install-jdk.sh works, but I don't know.

@eed3si9n
Copy link
Member

Generally, I have no strong feelings about which tool to use to install the JDK.

same.

@ashawley ashawley merged commit d98a4d9 into scala:master Nov 29, 2019
@ashawley ashawley deleted the install-jdk.sh branch November 29, 2019 20:41
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.

SDKMAN is broken in Travis
3 participants