api / org.gradle.api.plugins / MavenPluginConvention

MavenPluginConvention

open class MavenPluginConvention : MavenPomMetaInfoProvider

Properties and methods added by the org.gradle.api.plugins.MavenPlugin.

Constructors

<init>

MavenPluginConvention(project: ProjectInternal, mavenFactory: MavenFactory)

Functions

getConf2ScopeMappings

open fun getConf2ScopeMappings(): Conf2ScopeMappingContainer

Returns the set of rules for how to map Gradle dependencies to Maven scopes.

getMavenPomDir

open fun getMavenPomDir(): File

Returns the directory to generate Maven POMs into.

pom

open fun pom(): MavenPom

Creates a new MavenPom.

open fun pom(configureClosure: Closure<Any>): MavenPom

Creates and configures a new MavenPom. The given closure is executed to configure the new POM instance.

open fun pom(configureAction: Action<in MavenPom>): MavenPom

Creates and configures a new MavenPom. The given action is executed to configure the new POM instance.

setConf2ScopeMappings

open fun setConf2ScopeMappings(conf2ScopeMappings: Conf2ScopeMappingContainer): Unit

setMavenPomDir

open fun setMavenPomDir(pomDir: File): Unit
open fun setMavenPomDir(pomDir: Any): Unit

Sets the directory to generate Maven POMs into.