public class CompleterDelegate
extends java.lang.Object
The completion phase runs on each dependency to complete the missing license information, accept one from dual-licensed libraries, etc.
| Modifier and Type | Field and Description |
|---|---|
org.apache.maven.project.MavenProject |
dependency |
org.apache.maven.project.MavenProject |
project |
| Constructor and Description |
|---|
CompleterDelegate(org.apache.maven.project.MavenProject dependency,
org.apache.maven.project.MavenProject project) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(java.lang.String name)
From the multi-licensed modules, accept one of them.
|
org.apache.maven.model.License |
license(java.lang.String name,
java.lang.String url)
Creates a new license object.
|
void |
match(java.lang.Object criteria,
groovy.lang.Closure body)
If the current dependency matches the given groupId/artifactId, execute the body
|
void |
rewriteLicense(java.util.Collection<org.apache.maven.model.License> expected,
org.apache.maven.model.License to)
Verifies that the license of the current dependency is the ones listed in the 'expected' argument,
rewrite it with the specified one.
|
public org.apache.maven.project.MavenProject dependency
public org.apache.maven.project.MavenProject project
public CompleterDelegate(org.apache.maven.project.MavenProject dependency,
org.apache.maven.project.MavenProject project)
public void match(java.lang.Object criteria,
groovy.lang.Closure body)
criteria - A string like "groupId:artifactId" that matches the current dependency
("*" is allowed for wildcard), or a collection/array of them.public void rewriteLicense(java.util.Collection<org.apache.maven.model.License> expected,
org.apache.maven.model.License to)
public org.apache.maven.model.License license(java.lang.String name,
java.lang.String url)
public void accept(java.lang.String name)
Copyright © 2019. All Rights Reserved.