Search code examples
grailsgroovy

How can I compile code written in services inside plugin in grails 3.3.9


Whenever I make any changes in service inside plugin, I need to rerun the project for changes to be reflected. So, It is hectic to rerun the project for every small changes. Do anyone know any trick to compile the code without re running the project?


Solution

  • I fix this issue by setting up a local maven for the plugin https://www.baeldung.com/maven-local-repository.

    And in the plugin when I change any service or any other code then I run

    gradle clean build
    gradle publishToMavenLocal
    

    Then in the consumer application refresh the dependencies