Class RequirementsHistory

    • Method Detail

      • discoverMavenRequirement

        public 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.
        Parameters:
        project - not null
        pluginDescriptor - the plugin descriptor (can be null)
        Returns:
        the Maven version or null if not specified
      • discoverJdkRequirement

        public 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)
        1. use JDK requirement from plugin descriptor
        2. use release configuration of org.apache.maven.plugins:maven-compiler-plugin
        3. use maven.compiler.release< property
        4. use target configuration of org.apache.maven.plugins:maven-compiler-plugin
        5. use maven.compiler.target property
        Parameters:
        project - not null
        pluginDescriptor - the plugin descriptor (can be null)
        Returns:
        the JDK version