Skip to content

Commit

Permalink
use @component when available
Browse files Browse the repository at this point in the history
  • Loading branch information
hboutemy committed Sep 21, 2023
1 parent e5b7f8c commit 4ee0299
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public abstract class AbstractBuildinfoMojo extends AbstractMojo {
/**
* The Maven project.
*/
@Parameter(defaultValue = "${project}", readonly = true)
@Component
protected MavenProject project;

/**
Expand Down Expand Up @@ -102,7 +102,7 @@ public abstract class AbstractBuildinfoMojo extends AbstractMojo {
/**
* The current build session instance. This is used for toolchain manager API calls.
*/
@Parameter(defaultValue = "${session}", readonly = true, required = true)
@Component
private MavenSession session;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@
*/
@Mojo(name = "check-buildplan", threadSafe = true, requiresProject = true)
public class CheckBuildPlanMojo extends AbstractMojo {
@Parameter(defaultValue = "${reactorProjects}", required = true, readonly = true)
@Component
private List<MavenProject> reactorProjects;

@Parameter(defaultValue = "${project}", readonly = true)
@Component
private MavenProject project;

@Parameter(defaultValue = "${session}", readonly = true)
@Component
private MavenSession session;

@Component
Expand Down

0 comments on commit 4ee0299

Please sign in to comment.