cloudflow icon indicating copy to clipboard operation
cloudflow copied to clipboard

Allow including other config files from the classpath in blueprint.conf

Open thomasschoeftner opened this issue 5 years ago • 0 comments

Is your feature request related to a problem? Please describe. Presently, external hocon files can only be included in blueprint.conf using include required(file(...)). Including from classpath (via include required(classpath(...)) does not work - regardless if the file to be imported lies in src/main/resources or at the root of a dependency JAR file.

Also, including via file assumes the sbt-root-project folder as the base-path - not the folder of the current-sub-project. So, includes of hocon files in the same or other sbt sub-projects work via include required(file(<sub-project>/src/main/resources/foo.conf)).

Is your feature request related to a specific runtime of cloudflow or applicable for all runtimes? Applies to all runtimes

Describe the solution you'd like Being able to use include required(classpath(foo.conf)) to include hocon files from

  • src/main/resources of the current sbt sub-project
  • src/main/resources dependency SBT projects
  • dependency JAR files

Describe alternatives you've considered Includes of hocon files in the same or other sbt sub-projects work via include required(file(<sub-project>/src/main/resources/foo.conf)).

Additional context n/a

thomasschoeftner avatar Oct 22 '20 14:10 thomasschoeftner