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

Remove unnecessary Java runtime dependencies #1000

Merged
merged 1 commit into from
Aug 10, 2023

Conversation

fmeum
Copy link
Contributor

@fmeum fmeum commented Aug 1, 2023

kt_jvm_library no longer depends on a Java runtime for the target platform, which ensures that cross-platform builds targeting platforms without standalone Java runtimes (e.g. Android) can succeed without hacks (currently, Bazel's local_jdk is marked as compatible with any target platform, but that will change in the future).

Work towards bazelbuild/bazel#17085

@fmeum fmeum marked this pull request as ready for review August 1, 2023 12:22
@fmeum
Copy link
Contributor Author

fmeum commented Aug 1, 2023

@Bencodes Could you take a look? This is needed to finish my work bazelbuild/bazel#18262 with the aim of removing a lot of footguns from Java cross-compilation.

Edit: Didn't see the auto-assigned reviewers before I submitted this comment, if any other maintainer wants to take a look, that is of course appreciated as well.

@fmeum
Copy link
Contributor Author

fmeum commented Aug 1, 2023

I learned that @Bencodes is OOO, @restingbull could you take a look instead?

`kt_jvm_library` no longer depends on a Java runtime for the target
platform, which ensures that cross-platform builds targeting platforms
without standalone Java runtimes (e.g. Android) can succeed without
hacks (currently, Bazel's local_jdk is marked as compatible with any
target platform, but that will change in the future).
@Bencodes Bencodes merged commit 45cae78 into bazelbuild:master Aug 10, 2023
1 check passed
@fmeum fmeum deleted the java-runtime branch August 10, 2023 15:04
nkoroste added a commit to nkoroste/rules_kotlin that referenced this pull request Sep 15, 2023
…idanceKotlin_upstream

* upstream/master:
  Move the KSP and compiler target definitions into rules_kotlin (bazelbuild#1014)
  Avoid running java_common#compile against KSP generated outputs (bazelbuild#990)
  Update kt_java_stub_template to 6.2.1 (bazelbuild#992)
  Disable strict deps for Android example (bazelbuild#1013)
  Group the all_tests jobs together in presubmit.yml (bazelbuild#1008)
  Add rules_java 6.4.0 (bazelbuild#1010)
  Update Bazel to 6.3.2 (bazelbuild#1007)
  Update rules_jvm_external to 5.3 (bazelbuild#1009)
  Migrate usages of deprecated `JavaInfo` fields (bazelbuild#1005)
  Remove unnecessary Java runtime dependencies (bazelbuild#1000)
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.

2 participants