salesforce / rules_spring

Bazel rule for building Spring Boot apps as a deployable jar
BSD 3-Clause "New" or "Revised" License
226 stars 49 forks source link

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

Closed kriscfoster closed 1 year ago

kriscfoster commented 1 year ago

https://github.com/salesforce/rules_spring/issues/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).