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

Adopt is no more, long live Zulu! #5676

Merged
merged 1 commit into from
Sep 27, 2021
Merged

Conversation

geertjanw
Copy link
Contributor

Fixes #replaceWithIssueNr, fixes #replaceWithIssueNr

Your PR description here.

@boring-cyborg
Copy link

boring-cyborg bot commented Aug 28, 2021

Thanks for opening this pull request!

Please check out our contributor checklist and check if Travis or Codacy found any issues with your PR. Also make sure your commits are signed, and that you applied Bisq's code style and formatting.

A maintainer will add an is:priority label to your PR if it is up for compensation. Please see our Bisq Q1 2020 Update post for more details.

@ripcurlx
Copy link
Contributor

ripcurlx commented Sep 6, 2021

@geertjanw Is there a big benefit using Zulu openJDK version instead of Adopt?

@geertjanw
Copy link
Contributor Author

Adopt no longer exists. Zulu does. That's a big difference.

@geertjanw
Copy link
Contributor Author

It would also be good to not only set '11', i.e., that is whatever is the latest release, but also a specific version, e.g., 11.0.3, because then if a build fails, and you have 11.0.3 green and 11 red, it will mean that the problem is not with your code but the latest version of the JDK (and Zulu supports not only the latest JDK at this time, while Temurin supports only the latest JDK version at this time).

Here's an example of best practise, i.e., using a fixed version as well as the latest version of the JDK:

https://github.com/HdrHistogram/HdrHistogram/blob/master/.github/workflows/maven.yml

@ghubstan
Copy link
Contributor

ghubstan commented Sep 6, 2021

I assume "Adopt no longer exists" is referring to its move to the Eclipse Foundation. But Adopt still exists, and the Bisq desktop packager's Adopt JDK dist URLs still work as of today.

All I know so far about Zulu is that it is an OpenJDK build. I didn't know about it until last week, when I looked into the possibility of using JReleaser for packaging Bisq with bundled JDK. I had some problems downloading the Adopt JDK distributions with the org.jreleaser.jdks plugin as per jreleaser/jreleaser#363.

@aalmiray
Copy link

aalmiray commented Sep 6, 2021

FWIW regarding jreleaser/jreleaser#363 a fix is in progress but will become available at the end of September when JReleaser 0.7.0 is scheduled for release.

Switching to Zulu builds will make the org.jreleaser.jdks plugin work as expected. Why? Because Zulu builds unpack with an unique directory name per platform where as most JDK vendors (Oracle, Adopt, BellSoft, Amazon, Alibaba) use the same directory name (the JDK version) without any platform information in the name.

@ghubstan
Copy link
Contributor

ghubstan commented Sep 6, 2021

Switching to Zulu builds will make the org.jreleaser.jdks plugin work as expected.

Thanks, @aalmiray , for the quick response to the issue and remark here.

Yes, the org.jreleaser.jdks plugin works great with Zulu builds, as described in @aalmiray 's documentation.

Copy link
Contributor

@ripcurlx ripcurlx left a comment

Choose a reason for hiding this comment

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

As I don't see any drawbacks using Zulu (I used it myself in the past already) and jreleaser is using it also it might be a good first start to try it out here first.

@ripcurlx ripcurlx merged commit 6bcbce6 into bisq-network:master Sep 27, 2021
@boring-cyborg
Copy link

boring-cyborg bot commented Sep 27, 2021

Awesome work, congrats on your first merged pull request!

@ripcurlx
Copy link
Contributor

It would also be good to not only set '11', i.e., that is whatever is the latest release, but also a specific version, e.g., 11.0.3, because then if a build fails, and you have 11.0.3 green and 11 red, it will mean that the problem is not with your code but the latest version of the JDK (and Zulu supports not only the latest JDK at this time, while Temurin supports only the latest JDK version at this time).

Here's an example of best practise, i.e., using a fixed version as well as the latest version of the JDK:

https://github.com/HdrHistogram/HdrHistogram/blob/master/.github/workflows/maven.yml

Feel free to provide a PR for it 😄

@ripcurlx ripcurlx added this to the v1.7.5 milestone Sep 27, 2021
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.

4 participants