3.5.6 Plugin JAR Dependencies - Reference Documentation
Authors: Andres Almiray
Version: 1.2.0
3.5.6 Plugin JAR Dependencies
The way in which you specify dependencies for a plugin is identical to how you specify dependencies in an application. When a plugin is installed into an application the application automatically inherits the dependencies of the plugin.If you want to define a dependency that is resolved for use with the plugin but not exported to the application then you can set theexported
property of the dependency:compile('org.hibernate:hibernate-core:3.3.1.GA') {
exported = false
}
hibernate-core
dependency will be available only to the plugin and not resolved as an application dependency.