@groovy.transform.CompileStatic(TypeCheckingMode.SKIP) class PomPlugin extends java.lang.Object
Pom plugin "fixes" maven-publish plugin pom generation: set correct scopes for dependencies.
Plugin must be applied after java, java-library or groovy plugin.
Applies new configurations:
During pom generation dependencies scope is automatically fixed for implementation (compile) dependencies (gradle always set runtime for them), compileOnly dependencies are added to pom as provided.
Plugin implicitly activates maven-publish plugin. But publication still must be configured manually: pom plugin only fixes behaviour, but not replace configuration.
Plugin adds simplified pom configuration extension. Using pom closure in build new sections could be added to resulted pom. If multiple maven publications configured, pom modification will be applied to all of them.
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
apply(org.gradle.api.Project project) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(), java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |