Skip to content

Updated travis to openjdk11 - #1768

Merged
lemoncurry merged 5 commits into
exercism:masterfrom
uzilan:jdk11
Oct 16, 2019
Merged

lemoncurry merged 5 commits into
exercism:masterfrom
uzilan:jdk11

Conversation

@uzilan

@uzilan uzilan commented Oct 6, 2019

Copy link
Copy Markdown
Contributor

Travis seems not to support jdk8 anymore. Instead of using dist: trusty as a workaround, I suggest we use openjdk11.


Reviewer Resources:

Track Policies

@uzilan

uzilan commented Oct 6, 2019

Copy link
Copy Markdown
Contributor Author

Could this PR be labeled with hacktoberfest please?

@lemoncurry

lemoncurry commented Oct 9, 2019 •

Copy link
Copy Markdown
Contributor

Can you explain with more detail why this change is necessary?
Also, have you tested whether the build will pass? The full journey test was not triggered by your PR.

@uzilan

uzilan commented Oct 9, 2019

Copy link
Copy Markdown
Contributor Author

Travis does not support jdk8 anymore. A workaround was used to mitigate this, by forcing travis to use the old Trusty distribution which still allowed jdk8. The main problem I see with this is that it prohibits the common solutions of the exercises from using later versions of java, specifically the current LTS one, jdk11. Oracle does no longer support jdk8 and I as a mentor have seen many jdk11 solutions used by mentees. I think it's time to move on.

I have ran the full journey on travis when I pushed the branch on my fork. It looks good and can be found here: https://travis-ci.org/uzilan/exercism-java/jobs/594125154

Btw why didn't it run fully when I created the PR?

@lemoncurry

lemoncurry commented Oct 9, 2019 •

Copy link
Copy Markdown
Contributor

Btw why didn't it run fully when I created the PR?

EDIT: I looked at the script and your change did not qualify to trigger run_journey_test_with_all_exercises.

Thank you for your explanation. Right now we have jdk8 as minimum requirement in the installation guides, etc. https://github.com/exercism/java/tree/master/docs.
Thus, this would be a policy change. This is why I am hesitating to approve this change. @exercism/java what do you think about a change of the required jdk version?

@FridaTveit

Copy link
Copy Markdown
Contributor

As long as all the tests still work then I think upgrading the minimum Java version sounds sensible 🙂

@lemoncurry

Copy link
Copy Markdown
Contributor

As long as all the tests still work then I think upgrading the minimum Java version sounds sensible 🙂

Yes, I think so too 😄
But I think a change of the version should also include any file we have referencing the min. java version, such as the guides here.
@uzilan Could you include that in your PR? 🙂

@uzilan

uzilan commented Oct 9, 2019

Copy link
Copy Markdown
Contributor Author

Will do :)

@lemoncurry

Copy link
Copy Markdown
Contributor

@uzilan Thank you!

@uzilan

uzilan commented Oct 9, 2019 •

Copy link
Copy Markdown
Contributor Author

I've started verifying openjdk11 installations on linux, in order to update Installing Java and realized that on Fedora, running sudo dnf install gradle installs gradle version 4.4.1 and jdk 8, and that there are no newer packages than that. Googling that, I see that people suggest using sdkman instead (I also use it on my mac, great for switching versions). Should we recommend using that instead?

@lemoncurry

Copy link
Copy Markdown
Contributor

No newer Fedora package? 😞
Recommending sdkman seems reasonable. Did you have a chance to test it? Which Fedora version do you use?

@uzilan

uzilan commented Oct 11, 2019

Copy link
Copy Markdown
Contributor Author

I tried Fedora 30, and no, there is no newer gradle package. I tried sdkman and it's working great. Easy to install both openjdk11 and the latest gradle using it, so I think I'll use that in the instructions.

I'm also having issues with mint on docker:

$ sudo add-apt-repository ppa:openjdk-r/ppa
Traceback (most recent call last):
  File "/usr/lib/linuxmint/mintSources/mintSources.py", line 25, in <module>
    import gi
ImportError: No module named gi

So I think maybe I'll update the instructions I've been using successfully on Ubuntu and recommend using sdkman as an alternative.

@lemoncurry lemoncurry left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you @uzilan , LGTM!

@lemoncurry
lemoncurry merged commit fbfa15c into exercism:master Oct 16, 2019
@uzilan
uzilan deleted the jdk11 branch October 16, 2019 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants