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

Build failure #480

Open
Fabian42 opened this issue Nov 15, 2022 · 9 comments
Open

Build failure #480

Fabian42 opened this issue Nov 15, 2022 · 9 comments

Comments

@Fabian42
Copy link

Trying to update the AUR package from 0.21-1 to 0.21-2 on Manjaro:

> Could not open cp_proj generic class cache for build file '/home/fabian/.cache/yay/chatty/src/chatty-0.21/build.gradle' (/home/fabian/.cache/yay/chatty/src/.gradle/caches/7.5.1/scripts/3gblj88r5mxlk9vl0o0isc0zt).
   > BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 63```
@Dessa
Copy link

Dessa commented Nov 20, 2022

your gradle version does not support java 19, use at least gradle-7.6; milestone 1 at the earliest.

@Fabian42
Copy link
Author

Then that should be a dependency. Also, Gradle 7.6 doesn't exist yet: https://docs.gradle.org/current/release-notes.html

@Fabian42
Copy link
Author

Apparently there are pre-releases: https://github.com/gradle/gradle/releases

A bit weird to depend on that version if it isn't even fully released yet, but OK, I'll just wait, I guess.

@Dessa
Copy link

Dessa commented Nov 20, 2022

Then that should be a dependency.

uh, there is no dependency on anything newer then java 8 here as far as i can tell, but i haven't built the newest version yet

@Fabian42
Copy link
Author

That's the thing, if it can't be installed without another package, that other package should be marked as a dependency.

@bisby
Copy link

bisby commented Feb 20, 2023

Gradle 8 is out this week and seems to break building again. Downgrading to Gradle 7.6 works for building. It would seem that Chatty currently only builds on 7.6, nothing newer or older.

@tduva
Copy link
Contributor

tduva commented Feb 21, 2023

Gradle 8 is out this week and seems to break building again. Downgrading to Gradle 7.6 works for building. It would seem that Chatty currently only builds on 7.6, nothing newer or older.

Why are you not using the Gradle Wrapper, which ensures that the build happens on the Gradle version it was made for? Are you trying to build on a Java version that isn't compatible with older Gradle versions?

@Dessa
Copy link

Dessa commented Feb 21, 2023

Gradle 8 is out this week and seems to break building again. Downgrading to Gradle 7.6 works for building. It would seem that Chatty currently only builds on 7.6, nothing newer or older.

gradle 8 would be blocked by GradleUp/shadow#820 at least.

Why are you not using the Gradle Wrapper, which ensures that the build happens on the Gradle version it was made for? Are you trying to build on a Java version that isn't compatible with older Gradle versions?

seems likely, most distros already have moved to java 17, but some have also java 19, as the OP for example, java 8 isn't all that common anymore and 11 is slowly being phased out in favour of 17

@kleshas
Copy link

kleshas commented May 3, 2023

Looks like it's failing for gradle 7.6 now too. I've installed many times over the last few months on it, with no issues.

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