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

Version 3.2.0 do not work with Java 6 #87

Closed
andrioli opened this issue Oct 11, 2015 · 4 comments
Closed

Version 3.2.0 do not work with Java 6 #87

andrioli opened this issue Oct 11, 2015 · 4 comments
Labels
Milestone

Comments

@andrioli
Copy link
Contributor

Probably is better update the README. Currently, release 3.2.0 do not work with Java 6.

Exception message during coveralls:report:
Execution default-cli of goal org.eluder.coveralls:coveralls-maven-plugin:3.2.0:report failed: An API incompatibility was encountered while executing org.eluder.coveralls:coveralls-maven-plugin:3.2.0:report: java.lang.UnsupportedClassVersionError: org/eclipse/jgit/lib/AnyObjectId : Unsupported major.minor version 51.0

@trautonen
Copy link
Owner

Great... I've missed that JGit requires Java 7. Can't seem to find proper changelog from the project to identify which is the last version that works with Java 6.

If you need to run with Java 6, you could try to force Maven to use older version of JGit in the plugin's dependency configuration section.

@andrioli
Copy link
Contributor Author

@trautonen, I followed your suggestions and works fine.

<plugin>
    <groupId>org.eluder.coveralls</groupId>
    <artifactId>coveralls-maven-plugin</artifactId>
    <version>3.2.0</version>
    <dependencies>
        <!--
            Override JGit version. Unfortunately the plug-in uses 
            version 4.0.1 that is not compatible with Java 6
         -->
        <dependency>
            <groupId>org.eclipse.jgit</groupId>
            <artifactId>org.eclipse.jgit</artifactId>
            <version>3.7.1.201504261725-r</version>
        </dependency>
    </dependencies>
</plugin>

In JGit version 4.0.0 they changed the minimum required Java version to Java 7 (see Bug 458475)

Apparently, using JGit 3.7.1, do not break the API you are using (at least not noticed at my runtime) 😄

@trautonen trautonen added this to the v3.2.1 milestone Nov 28, 2015
@trautonen
Copy link
Owner

Created hotfix version 3.2.1 which downgrades the jgit version. You can switch to that version to get rid of the explicit dependency in pom.xml.

andrioli added a commit to saeg/asm-defuse that referenced this issue Dec 5, 2015

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
andrioli added a commit to saeg/asm-defuse that referenced this issue Dec 5, 2015
@andrioli
Copy link
Contributor Author

andrioli commented Dec 5, 2015

Works fine 👍

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

No branches or pull requests

2 participants