Skip to content

Commit

Permalink
#1319 no license arg for maven
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Feb 18, 2025
1 parent e75a0f2 commit 019e90a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,6 @@ public abstract class AbstractQuliceMojo extends AbstractMojo
@Parameter(property = "qulice.skip", defaultValue = "false")
private boolean skip;

/**
* Location of License file. If it is an absolute file name you should
* prepend it with "file:" prefix. Otherwise it is treated like a resource
* name and will be found in classpath (if available).
*/
@Parameter(property = "qulice.license", defaultValue = "LICENSE.txt")
private String license = "LICENSE.txt";

/**
* List of regular expressions to exclude.
*/
Expand Down Expand Up @@ -139,14 +131,6 @@ public final void setAsserts(final Collection<String> asser) {
this.asserts.addAll(asser);
}

/**
* Set license address.
* @param lcs The "license" option
*/
public final void setLicense(final String lcs) {
this.license = lcs;
}

/**
* Set excludes.
* @param exprs Expressions
Expand Down Expand Up @@ -176,7 +160,6 @@ public final void execute() throws MojoFailureException {
this.getLog().info("Execution skipped");
return;
}
this.environment.setProperty("license", this.license);
this.environment.setProject(this.project);
this.environment.setMojoExecutor(
new MojoExecutor(this.manager, this.sess)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ void validatesUsingAllProvidedValidators() throws Exception {
final MavenProject project = Mockito.mock(MavenProject.class);
mojo.setProject(project);
mojo.setLog(Mockito.mock(Log.class));
final String license = "file:./some-file.txt";
mojo.setLicense(license);
final Context context = Mockito.mock(Context.class);
mojo.contextualize(context);
mojo.execute();
Expand Down

0 comments on commit 019e90a

Please sign in to comment.