Skip to content

Conversation

@Bencodes
Copy link
Collaborator

@Bencodes Bencodes commented Apr 11, 2023

JavaPluginInfo was added in Bazel 5.x which means that it exists by default for all versions of Bazel that we officially support in rules_kotlin which means that we should no longer be applying the kt_jvm_plugin_aspect aspect. It should be safe to remove now.

This also defaults the rest plugins.bzl over to using JavaPluginInfo directly.

return depset(transitive = [t[KtJvmPluginInfo].transitive_runtime_jars for t in targets if KtJvmPluginInfo in t])
return depset(
transitive = [
(t[_JavaPluginInfo] if _JavaPluginInfo in t else t[JavaInfo]).plugins.processor_jars
Copy link
Collaborator

Choose a reason for hiding this comment

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

let me guess -- None in t is False?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

_JavaPluginInfo should never be null as it was released in Bazel 5 and we technically do not support versions before 5.

@Bencodes Bencodes merged commit dee20f9 into master Apr 12, 2023
@Bencodes Bencodes deleted the remove-kt_jvm_plugin_aspect-now-that-all-versions-of-bazel-support-javaplugininfo branch April 12, 2023 22:01
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