btesf
07/31/2024, 8:03 PMGrailsAutoConfiguration to spin up the Spring container, but I need to ensure the plugin’s Application class is disabled in production (non-test) mode.
I’ve checked the Grails documentation but couldn’t find a specific solution for this issue.
Is there a way to disable the plugin’s Application class from starting in production (non-test) mode? Any clean solutions to address this would be greatly appreciated.
Thank you!
@PluginSource
class Application extends GrailsAutoConfiguration {
static void main(String[] args) {
GrailsApp.run(Application, args)
}Galeno de Melo
07/31/2024, 8:15 PMbootJar.enabled = false on build.gradle? This should make the plugin stop acting as a standalone application
https://docs.grails.org/latest/guide/upgrading.html#_building_executable_jars_for_grails_pluginsbtesf
07/31/2024, 8:48 PMbootJar.enabled = falseJames Fredley
07/31/2024, 11:27 PMbtesf
08/01/2024, 7:41 PMApplication (the plugin’s entry point) using the techniques I mentioned earlier (env. variables, spring profiles etc …).
I was wondering if there is a more common way to prevent the plugin’s application from starting alongside the main app as a stand along app and interfering with it.James Fredley
08/01/2024, 8:12 PM