In grails we use the multiple plugins as dependencies and some time it is likely that more than one plugin is using the same jar dependencies of different versions. This scenario will result in a conflict. To avoid such situation we can exclude the unwanted jar dependency from the plugin like :

 plugins {
compile ("plugin.groupname:plugin.artifactoryname:latest.release") {
                        excludes 'jarname'
                    }
} 

Same we can also removed the jar dependencies for another jar like :

dependencies {
runtime ('org.camelwatch:camelwatch-api:0.5-SNAPSHOT') {
               changing = true
               excludes 'slf4j-log4j12', 'spring-core', 'spring-context', 'spring-beans', 'antlr'
            }
}

Hope it helps some one