Comments (6)
I'm the maintainer for AUR package chatty-git... it appears gradle7 is required for building.
Here are the changes I made in order to have the package compile successfully:
diff --git a/PKGBUILD b/PKGBUILD
index e4c8670..9255219 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=chatty-git
_pkgname=${pkgname%-git}
-pkgver=0.21.b1.r0.g4189a3d0
+pkgver=0.24.1.r0.ge17ed1d3
pkgrel=1
pkgdesc='Twitch Chat Client for Desktop'
arch=('any')
@@ -11,7 +11,7 @@ license=('GPL3')
depends=('java-environment' 'sh')
optdepends=('streamlink: for watching streams in a custom video player.'
'livestreamer: for watching streams in a custom video player.')
-makedepends=('gradle')
+makedepends=('gradle7')
provides=(${_pkgname})
conflicts=(${_pkgname})
source=("${pkgname}::git+https://github.com/chatty/chatty"
@@ -38,8 +38,8 @@ prepare() {
build() {
cd "${srcdir}/${pkgname}"
- gradle --quiet build
- gradle --quiet release
+ gradle7 --quiet build
+ gradle7 --quiet release
}
package(){
from chatty.
Looks like you're not using the Gradle Wrapper and you're on a Gradle version that is not supported. The shadow jar plugin wasn't compatible with Gradle 8 yet, but it seems like it is updated now. I'll switch to that version assuming there aren't any issues with it, then it should hopefully work.
from chatty.
Same error with beta AUR package
=> Starting build()...
FAILURE: Build failed with an exception.
* Where:
Build file '/home/zangoku/.cache/paru/clone/chatty-beta/src/chatty-0.24-b1/build.gradle' line: 84
* What went wrong:
A problem occurred evaluating root project 'chatty-0.24-b1'.
> Could not set unknown property 'classifier' for task ':shadowJar' of type com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar.
* 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 2s
==> ERROR: A failure occurred in build().
Aborting...
error: failed to build 'chatty-beta-0.24b1-1':
from chatty.
I’ve switched the PKGBUILD to use the ./gradlew
script. Now the build fails with > BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 63
(in full output). The command being run to build in this case is ./gradlew --quiet --info --debug --stacktrace build
(line in PKGBUILD).
Gradle version is (should be) 8.1 (is that unsupported?) and OpenJDK at 19.0.2 (full version details).
Full output here: https://gist.github.com/Freso/255982f2c8d67d464b905a7d77f2721c
from chatty.
Still getting the same issue as @Freso
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'chatty-0.24-b4'.
> Could not open cp_proj generic class cache for build file '/home/zangoku/.cache/paru/clone/chatty-beta/src/chatty-0.24-b4/build.gradle' (/home/zangoku/.cache/paru/clone/chatty-beta/src/.gradle/caches/6.5.1/scripts/9q3t15d4wiuwxlxfozhl847vu).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 64
* 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 1s
==> ERROR: A failure occurred in build().
Aborting...
error: failed to build 'chatty-beta-0.24b4-1':
from chatty.
FWIW, chatty-beta
builds (and runs) with Gradle 8.1.1 and OpenJDK 20.0.1 as of v0.25-b2
.
from chatty.
Related Issues (20)
- Build failure HOT 9
- Support for /pin and /shoutout Twitch commands HOT 2
- Notify only about favorite streams HOT 1
- open links without popup confirmation? HOT 2
- Join links in raid messages have incorrect context menu links
- no sound with Voicemeeter HOT 4
- Minimized windows not restoring on Win+D on Windows
- [v0.23] FFZ supported badge disappeared HOT 3
- User not removed from the chat member list when ignored HOT 3
- User list duplicates selection to a joined user placed after him
- Chatty minimizes its window when clicking a tray balloon
- Filter out announcements from ignored users HOT 1
- Lags on MacOS
- Access missing: "Ban users" (see "Main - Account") HOT 2
- Show multimonth sub announcements HOT 5
- /refresh ALL emotes pls HOT 2
- Kick support HOT 1
- Hype Chat support HOT 1
- Disable Automod Close on Q
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chatty.