Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java 7 compatibility silently broken #330

Closed
RyanFoulds opened this issue Feb 7, 2022 · 2 comments
Closed

Java 7 compatibility silently broken #330

RyanFoulds opened this issue Feb 7, 2022 · 2 comments
Assignees

Comments

@RyanFoulds
Copy link

RyanFoulds commented Feb 7, 2022

The latest versions-maven-plugin (2.9.0) is compiled on java 8. The command used to invoke that plugin will, without special care, use the latest version. ​Could this dependency be explicitly declared or a known-good version be pinned? Perhaps even a configuration parameter to specify the version of versions-maven-plugin to be used?

This issue can easily be worked-around by using specifying a version in a pluginManagement element of a java 7 project using this plugin, but diagnosing the release pipeline failure was tricky without the dependency on versions being declared.

<build>
    <pluginManagement>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>versions-maven-plugin</artifactId>
                <version>2.8.1</version>
            </plugin>
       </plugins>
    </pluginManagement>
</build>

edit: this also applies to the tycho versions plugin which broke support for Java 7 back in version 0.25.0 and now requires at least Java 11.

@aleksandr-m aleksandr-m self-assigned this Feb 10, 2022
@aleksandr-m
Copy link
Owner

Related #115

@aleksandr-m
Copy link
Owner

Added versionsMavenPluginVersion and tychoVersionsPluginVersion properties with defaults.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants