public class RequirementsHistory extends Object
Constructor and Description |
---|
RequirementsHistory() |
Modifier and Type | Method and Description |
---|---|
static String |
discoverJdkRequirement(org.apache.maven.project.MavenProject project,
org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor)
Tries to determine the JDK requirement from the following sources (until one is found)
use JDK requirement from plugin descriptor
use
release configuration of org.apache.maven.plugins:maven-compiler-plugin
use maven.compiler.release< property
use target configuration of org.apache.maven.plugins:maven-compiler-plugin
use maven.compiler.target property
|
static String |
discoverMavenRequirement(org.apache.maven.project.MavenProject project,
org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor)
Tries to determine the Maven requirement from either the plugin descriptor or (if not set) from the
Maven prerequisites element in the POM.
|
static RequirementsHistory |
discoverRequirements(org.apache.maven.project.MavenProject project) |
String |
getJdk() |
String |
getMaven() |
String |
getVersion() |
boolean |
hasSameRequirements(RequirementsHistory other) |
String |
toString() |
public RequirementsHistory()
public String getVersion()
public static RequirementsHistory discoverRequirements(org.apache.maven.project.MavenProject project)
public static String discoverMavenRequirement(org.apache.maven.project.MavenProject project, org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor)
project
- not nullpluginDescriptor
- the plugin descriptor (can be null)public static String discoverJdkRequirement(org.apache.maven.project.MavenProject project, org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor)
release
configuration of org.apache.maven.plugins:maven-compiler-plugin
maven.compiler.release<
propertytarget
configuration of org.apache.maven.plugins:maven-compiler-plugin
maven.compiler.target
propertyproject
- not nullpluginDescriptor
- the plugin descriptor (can be null)public boolean hasSameRequirements(RequirementsHistory other)
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.