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

write jars into BOOT-INF/lib with less path clutter #62

Closed plaird closed 3 years ago

plaird commented 3 years ago

Fixes Issue #61

When writing the dependencies in the Spring Boot jar, previously there was extraneous clutter in the subdirectories used to contain each dep. This PR reduces the clutter.

For internal libs from the Bazel workspace, the path will now look like this: BOOT-INF/lib/samples/helloworld/libs/lib1/liblib1.jar

For maven_install sourced deps, the path will now look like this: BOOT-INF/lib/javax/websocket/javax.websocket-client-api/1.0/javax.websocket-client-api-1.0.jar

Previously there were path tokens like: BOOT-INF/lib/bazel-out/darwin-fastbuild/bin/external/maven/v1/https/repo.acme.com/nexus/content/groups/public/com/fasterxml/jackson/core/jackson-annotations/2.10.5/jackson-annotations-2.10.5.jar