public final class ModuleInfoUtils extends Object
Constructor and Description |
---|
ModuleInfoUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
addRequires(NbMavenProject project,
Collection<? extends org.apache.maven.artifact.Artifact> artifacts)
Adds the given artifacts as require entries into module-info.java.
|
static boolean |
checkModuleInfoAndCompilerFit(Project prj)
Determines if the configured maven-compiler-plugin isn't too old in case
there is a main module-info.java in the given project (has to be >= 3.6).
|
static boolean |
hasModuleInfo(NbMavenProject nbprj) |
public static void addRequires(NbMavenProject project, Collection<? extends org.apache.maven.artifact.Artifact> artifacts)
project
- artifacts
- public static boolean checkModuleInfoAndCompilerFit(Project prj)
prj
- the project to be checkedtrue
if there is no module-info file or if the m-c-p version is new enough (>= 3.6). Otherwise false
public static boolean hasModuleInfo(NbMavenProject nbprj)