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

add bazelrun_java_toolchain attribute to launch service with the java toolchain JVM #172

Closed plaird closed 11 months ago

plaird commented 11 months ago

Solves #16 effectively. It allows the caller to pass in the label to a java toolchain into the springboot macro. Then, when the user launches the service with bazel run, the JVM will be launched from the toolchain.

Also added support for BAZEL_RUN_JAVA environment variable that will be used before any other options.