How to check for a module exits and include it in resources in grails

36 Views Asked by At

I have a module defined as below, which depends on other module.

'myTestService' {
    dependsOn "otherTestService"
}

otherTestService is defined in another plugin But that plugin may not be included always,So the app works fine if the module found otherwise, it will throw an error.

So, How to safely include this module.

0

There are 0 best solutions below