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

Use the java_tools release split into platform independent and prebuilt part. #12552

Closed
wants to merge 13 commits into from

Conversation

comius
Copy link
Contributor

@comius comius commented Nov 24, 2020

This builds on top of the commit "Separate java_tools into platform independent and prebuilt part.".

  • java_tools release 11.0 is used
  • java_tools platform independent repo is added
  • java toolchain definitions appropriate for new release are added to tools/jdk/BUILD
  • remote_java_tools are replaced with aliases
  • tests are reenabled

@google-cla google-cla bot added the cla: yes label Nov 24, 2020
@comius comius force-pushed the split-javatools-2 branch 2 times, most recently from 83f8890 to 59efc8d Compare November 24, 2020 18:34
@comius comius changed the title Split javatools 2 Use the java_tools release split into platform independent and prebuilt part. Nov 24, 2020
@comius comius self-assigned this Nov 24, 2020
@comius comius force-pushed the split-javatools-2 branch 5 times, most recently from d5cbb9e to 94d3085 Compare November 25, 2020 17:22
java_tools is package containing tools needed during Java compilation: JavaBuilder, patches for Java compiler, ijar, singlejar, ...
Most of the files are pure Java .jars. java_tools are released for three platforms: linux, windows and darwin, however the only diffrence is in two binaries: ijar and singlejar.

This is part one: splitting java_tools and releasing split version (follows the use of split version in Bazel)

Java_tools used to be released for multiple Java versions, but all the releases were the same except a some string substitutions in BUILD file. I changed to build only a single version, since it already supports Java from 8 to 14.

Changes:
- BUILD.java_tools is split into BUILD.java_tools_prebuilt (where the second contains prebuilt binaries)
- toolchain definitions are removed from BUILD.java_tools and will be added to tools/jdk/BUILD in the second part
- java_toolchain_default.bzl.java_tools is removed (default_java_toolchain.bzl will be updated with its features in the second part).
- src/BUILD: JAVA_VERSION is removed, targets used to build java_tools.zip are duplicated to build java_tools_prebuilt.zip (done some cleanup as well)
- upload_all_java_tools.sh and upload_java_tools.sh: used by Build kite, I removed java_version over the release, but kept it over tests (for different JDKs)
- create_java_tools_release.sh: used by the user in the release process - added platform independent part
@comius comius marked this pull request as ready for review November 26, 2020 13:05
@philwo
Copy link
Member

philwo commented Nov 26, 2020

Wow. Great work!

@comius
Copy link
Contributor Author

comius commented Nov 26, 2020

Fixes #8406

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

Successfully merging this pull request may close these issues.

None yet

2 participants