salesforce / rules_spring

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

support args for bazel run invocations #63

Closed plaird closed 3 years ago

plaird commented 3 years ago

This PR adds support for customization of launches using bazel run:

JVM Args

Defining JVM args for a spring boot application in the BUILD file (Issue #36)

springboot(
    name = "helloworld",
    boot_app_class = "com.sample.SampleMain",
    java_library = ":helloworld_lib",
   jvm_flags = "-Dcustomprop=gold",
)

Main Args

Are now passed onto the Spring Boot application (Issue #8)

bazel run //samples/helloworld red green blue