Skip to content

Commit

Permalink
add binary version as label, so it can be filtered
Browse files Browse the repository at this point in the history
Summary: Add a java_version and java_runtime as attributes so it can be filtered

Reviewed By: j-bahr

Differential Revision: D64849582

fbshipit-source-id: ed9a5dc40c18e4ea1e362e8a732c0b62da90b2ed
  • Loading branch information
Adolfo Santos authored and facebook-github-bot committed Oct 29, 2024
1 parent 4d3514f commit 7fc543c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions prelude/decls/java_rules.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ java_binary = prelude_rule(
"generate_wrapper": attrs.bool(default = False),
"do_not_create_inner_jar": attrs.bool(default = False),
"incremental_target_prefix": attrs.option(attrs.string(), default = None),
"java_version": attrs.option(attrs.string(), default = None, doc = "Expected java version used at compile time"),
"java_runtime": attrs.option(attrs.string(), default = None, doc = "Expected java version used at runtime"),
"labels": attrs.list(attrs.string(), default = []),
"licenses": attrs.list(attrs.source(), default = []),
}
Expand Down

0 comments on commit 7fc543c

Please sign in to comment.