bazelbuild / bazelbuild/rules_java

Allow custom stub template for java_binary

Open
#329 9 comments 0 reactions 0 assignees View on GitHub
P3
Dominant language
Starlark
Stars
103
Forks
102
PR merge metrics
No merged PRs in 30d

Description

### Description of the feature request:

We would like to use our own java stub template to replace java_stub_template.txt. Our use case uses a lot of custom system properties that can be generated from rule dependencies. However Bazel's java stub template is fixed. It would be nice to allow custom java rule template through something like java_toolchain

Contributor guide

Open the contributing guide

Research direction

Start at java_stub_template.txt and the java_toolchain entry point to understand how java_binary currently selects its stub template. Define how a user-supplied template would be passed and validated, while preserving the default; done means java_binary can use a custom template for dependency-derived system properties.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.