Skip to content

provide mechanism to not include git.properties file in resulting jar #168

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

Merged
merged 2 commits into from
Jul 5, 2023

Conversation

kriscfoster
Copy link
Contributor

@kriscfoster kriscfoster commented Jul 5, 2023

#163

Motivation?

Sometimes people don't want to include the git.properties in the jar they will deploy (security etc).

How?

Providing mechanism to not include git.properties file in the resulting jar e.g.

springboot(
    name = "abc",
    boot_app_class = "x.y.z",
    include_git_properties_file = False,
    java_library = ":abc",
)

The above target results in the following behaviour:

jar tf bazel-bin/projects/something/abc.jar | grep git.properties

<whole lot of nothing>

Also generated new Stardocs (this is cool, never saw it before).

@kriscfoster kriscfoster merged commit 5e27859 into main Jul 5, 2023
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.

3 participants