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

JDK 1.8 fails? #660

Open
APN-Pucky opened this issue Jul 30, 2022 · 6 comments
Open

JDK 1.8 fails? #660

APN-Pucky opened this issue Jul 30, 2022 · 6 comments

Comments

@APN-Pucky
Copy link

What happened?

I am running JDK 1.8 and a version bump seems to break previous 0.12.3 behavior (APN-Pucky/GitJarUpdate#3).

 An exception occurred applying plugin request [id: 'com.palantir.git-version', version: '0.15.0']
> Failed to apply plugin [id 'com.palantir.git-version']
   > Could not create plugin of type 'GitVersionPlugin'.
      > Could not generate a decorated class for class com.palantir.gradle.gitversion.GitVersionPlugin.
         > org/eclipse/jgit/lib/Repository has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

What did you want to happen?

This version should also work with 1.8 JDK since

sourceCompatibility JavaVersion.VERSION_1_8

or am I missing something?

@luccas-freitas
Copy link

luccas-freitas commented Aug 9, 2022

I'm also having the same issue. I downgraded to 0.13.0 version and it worked for me.

@kpodvolecky
Copy link

What happened?

I am running JDK 1.8 and a version bump seems to break previous 0.12.3 behavior (APN-Pucky/GitJarUpdate#3).

 An exception occurred applying plugin request [id: 'com.palantir.git-version', version: '0.15.0']
> Failed to apply plugin [id 'com.palantir.git-version']
   > Could not create plugin of type 'GitVersionPlugin'.
      > Could not generate a decorated class for class com.palantir.gradle.gitversion.GitVersionPlugin.
         > org/eclipse/jgit/lib/Repository has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

What did you want to happen?

This version should also work with 1.8 JDK since

sourceCompatibility JavaVersion.VERSION_1_8

or am I missing something?

This is sourceCompatibility, not targetCompatibility :(.

@kpodvolecky
Copy link

I'm also having the same issue. I downgraded to 0.13.0 version and it worked for me.

yep, works on JDK8, but doesn't work with latest gradle :(

@robert3005
Copy link

This looks like an issue with jgit where we automatically pulled in new jgit version that no longer supports java 8. While it's unfortunate I think it's reasonable to say java 11 would be the minimum version. Personally I'm surprised this plugin stayed as long as it has on java 8

@robert3005
Copy link

Looks like this is a side effect of #581 which bumped jgit to 6.x to support submodules properly

@skmedix
Copy link

skmedix commented Apr 2, 2023

Since jgit was removed in 3.0.0 (#685), looks like compatibility with JDK 1.8 is back!

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

5 participants