This feature is a simple partial solution to #129 . It is for cases where a service needs to inject more classes into the root of the executable jar. This means the classes are written directly into the root of the jar, not in BOOT-INF/classes or BOOT-INF/libs.
It works by creating a java_library target with the special name: rootclassloader_lib
java_library(
name = "rootclassloader_lib",
srcs = glob(["src_root/main/java/**/*.java"]),
)
then adding the java_library to the deps attribute of the springboot rule:
I am not comfortable making this an official feature since it is a bit hacky, using a naming convention. But adding it in, such that anyone can have a solution for root classes in #129 .
This feature is a simple partial solution to #129 . It is for cases where a service needs to inject more classes into the root of the executable jar. This means the classes are written directly into the root of the jar, not in BOOT-INF/classes or BOOT-INF/libs.
It works by creating a java_library target with the special name: rootclassloader_lib
then adding the java_library to the deps attribute of the springboot rule:
I am not comfortable making this an official feature since it is a bit hacky, using a naming convention. But adding it in, such that anyone can have a solution for root classes in #129 .