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

[AUR] gradlew fails for java != 17 #847

Closed
tippfehlr opened this issue Sep 25, 2024 · 1 comment · Fixed by #848
Closed

[AUR] gradlew fails for java != 17 #847

tippfehlr opened this issue Sep 25, 2024 · 1 comment · Fixed by #848

Comments

@tippfehlr
Copy link
Contributor

tippfehlr commented Sep 25, 2024

Describe the bug
The AUR package does not build:

Starting a Gradle Daemon (subsequent builds will be faster)

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'cli'.
> Could not open cp_proj generic class cache for build file '/home/jonathan/.cache/paru/clone/crowdin-cli/src/crowdin-cli/build.gradle' (/home/jonathan/.gradle/caches/8.5/scripts/hrcgm5tvxpmbkpbvbkyqoaj).
   > BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 66

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 13s

To Reproduce
Steps to reproduce the behavior:

  • Try to install crowdin-cli with java != 17 (e.g. install latest java)

The user could also have multiple java versions installed.

@andrii-bodnar
Copy link
Member

Thanks for reporting this!

Related file - packages/aur/pkgbuild/PKGBUILD

tippfehlr added a commit to tippfehlr/crowdin-cli that referenced this issue Sep 26, 2024
The currently used gradlew version does not support the latest java.
To fix this, specify java-environment=17 and put any jdk17 to the front
of PATH, in case a jdk17 is not currently selected by the user.

And:
- remove _pkgBuildVersion, use $pkgver
- install license

Closes: crowdin#847
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants