Where to put Thorntail Swarm Configuration (project-defaults.yml) within a multi module Gradle project?

189 Views Asked by At

I'm trying to configure the Swarm AS based on Thorntail 2.5.0.Final with a project-defaults.yml within a multi-module Gradle project. Unfortunately the configuration file doesn't get picked up.

Where do I have to put the project-defaults.yml file so it's registered by Thorntail?

Currently the situation looks like this: Current sitatuion

I think the sub module resources folder is not correct, because this configuration file should configure the whole AS, right?

1

There are 1 best solutions below

3
On

The file belongs to src/main/resources. It seems you already have one there -- are the two different?

If you have a multi-module project, generally there should be one module that builds the uberjar, and that module should have src/main/resources/project-defaults.yml.