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

Stop using native java rules as these are now deprecated usages. #258

Merged

Conversation

cgruber
Copy link
Collaborator

@cgruber cgruber commented Jan 15, 2020

Fixes #247

@cgruber cgruber added component: android component: jvm P1 type: cleanup Refactorings, idiomatic transforms, tech debt payoff status: in review Solution being reviewed labels Jan 15, 2020
@cgruber cgruber self-assigned this Jan 15, 2020
WORKSPACE Outdated
kt_register_toolchains()

http_archive(
Copy link
Member

Choose a reason for hiding this comment

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

There's a vendored @rules_java in every Bazel installation. Do we need this here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh? Nice! I guess we do not. Though it semi-forces the kotlin rules to use whatever is in the current bazel... that definitely ties the lifecycles, but in practice, they're already tied, so it's no worse, and there's less hassle. I'll remove. Do I need to declare it or is it just available as @rules_java?

Copy link
Member

Choose a reason for hiding this comment

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

It's available as @rules_java, no need to declare. Bazel prefixes and suffixes every WORKSPACE with some implicit repositories, and @rules_java is one of them.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Nice - is there a list? (Also... done)

Copy link
Member

Choose a reason for hiding this comment

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

@cgruber cgruber force-pushed the fix/incompatible_native_java_rules branch from f461be6 to 477a1f1 Compare January 15, 2020 22:10
@cgruber cgruber force-pushed the fix/incompatible_native_java_rules branch from 477a1f1 to 1109277 Compare January 15, 2020 22:11
@cgruber cgruber merged commit 186c1e1 into bazelbuild:master Jan 15, 2020
@cgruber cgruber added status: closed - fixed and removed status: in review Solution being reviewed labels Jan 15, 2020
cgruber added a commit to cgruber/rules_kotlin that referenced this pull request Feb 10, 2020
* upstream/master:
  typo and add missing paren.
  Add release legacy-1.3.0
  Reference proper "current release" as legacy 1.3.0
  Update README to account for legacy-1.3.0 release.
  Fix bad date in changelog
  Release the Kotlin rules in a simplified workspace relying on precompiled jars. (bazelbuild#271)
  Update CODEOWNERS (remove str, thomaswk) (bazelbuild#272)
  Factor out external workspace versions and SHA256s into variables conveniently placed at the top. (bazelbuild#259)
  Add a link to the generated documentation (bazelbuild#237)
  Stop using native java rules (bazelbuild#258)
  Add InteliiJ aspect info (bazelbuild#242)
  Change readme file formatting (bazelbuild#243)
  Update CHANGELOG.md
  Update readme to release candidate 4
  Tweak the inference of the test class's package a bit, to support src/test/kotlin/ and kotlin/, since while it's common for kotlin files to live in a /java/ root, it's not UNcommon for them to live in a *kotlin/ root. (bazelbuild#257)
  Passthrough tags to the container android_library (bazelbuild#255)
  Fix current "latest" to actually be the latest.
  Update CHANGELOG.md
  Update to release legacy-1.3.0-rc3
  Support more recent java versions in the kotlin toolchain. (bazelbuild#236)
cgruber added a commit to cgruber/rules_kotlin that referenced this pull request Feb 10, 2020
* origin/master:
  Stop using native java rules (bazelbuild#258)
  Add InteliiJ aspect info (bazelbuild#242)
  Change readme file formatting (bazelbuild#243)
  Update CHANGELOG.md
  Update readme to release candidate 4
  Tweak the inference of the test class's package a bit, to support src/test/kotlin/ and kotlin/, since while it's common for kotlin files to live in a /java/ root, it's not UNcommon for them to live in a *kotlin/ root. (bazelbuild#257)
  Passthrough tags to the container android_library (bazelbuild#255)
  Fix current "latest" to actually be the latest.
@cgruber cgruber deleted the fix/incompatible_native_java_rules branch April 14, 2020 04:50
jongerrish added a commit to jongerrish/rules_kotlin that referenced this pull request Apr 16, 2020
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.

Flag --incompatible_load_java_rules_from_bzl will break rules_kotlin in Bazel 1.2.1
2 participants