Hi all, I bumped into a weird issue while converti...
# questions
i
Hi all, I bumped into a weird issue while converting my Grails 6 project into a multi-project. I defined a single web-app and a couple of plugins, with this structure:
Copy code
app/
    build.gradle
plugin1/
    build.gradle
plugin2/
    build.gradle
build.gradle
settings.gradle     // includes app, plugin1, plugin2
At the moment,
app
is still a “stand-alone” web-app, as it does not reference plugins as dependencies. `app`’s bootstrap checks
Environment.isDevelopmentMode()
, and I found out that, when executing
app:bootRun
task, it returns
false
because
System.getProperty("base.dir")
resolves to
plugin2
directory, or better to the last dir of the multi-project’s root dir, in alphabetical order. Am I missing something?
j
Is this still on Grails 6?
i
Yes, I cannot upgrade to Grails 7 at the moment. After a good night of sleep I figured out that I had this configuration
Copy code
bootRun {
    systemProperties System.properties
    sourceResources sourceSets.main
}
on both
build.gradle
(project root, applied to all
subprojects
) and
app/build.gradle
. Removing the latter fixed the issue, but I’m not sure why it was happening in the 1st place. Thanks for checking in!
👍 1