Home > Blockchain >  Grails 5 multi module project recompile failed
Grails 5 multi module project recompile failed

Time:04-14

I am using Intellij IDEA 2021.3, on my multi module grails 5.1.5 project changes made in the WebPlugin won't recompile on save. (Changes in MainApp recompiles on save, and changes appear on browser)

Project file structure:

Project
 -> MainApp //grails 5.1.5 - web project
 -> WebPlugin //grails 5.1.5 - web plugin

CodePudding user response:

Thank you for the comments, found the answer in documentation: https://docs.grails.org/5.1.5/guide/single.html#plugins

To fix this issue you can follow next steps:

Step 1. Declare a project dependency on the plugin:

grails {
    plugins {
        implementation project(':myplugin')
    }
}

Step 2.Configure the plugin to enable reloading:

In the plugin directory, add or modify the gradle.properties file. A new property exploded=true needs to be set in order for the plugin to add the exploded directories to the classpath.

  • Related