chatty icon indicating copy to clipboard operation
chatty copied to clipboard

Build failure

Open Fabian42 opened this issue 3 years ago • 9 comments

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```

Fabian42 avatar Nov 15 '22 18:11 Fabian42

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

Dessa avatar Nov 20 '22 11:11 Dessa

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

Fabian42 avatar Nov 20 '22 18:11 Fabian42

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.

Fabian42 avatar Nov 20 '22 18:11 Fabian42

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

Dessa avatar Nov 20 '22 18:11 Dessa

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

Fabian42 avatar Nov 20 '22 18:11 Fabian42

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.

bisby avatar Feb 20 '23 22:02 bisby

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?

tduva avatar Feb 21 '23 11:02 tduva

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 https://github.com/johnrengelman/shadow/issues/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

Dessa avatar Feb 21 '23 12:02 Dessa

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.

kleshas avatar May 03 '23 23:05 kleshas