Giter Site home page Giter Site logo

Comments (6)

tonylambiris avatar tonylambiris commented on June 11, 2024 1

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.

tduva avatar tduva commented on June 11, 2024

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.

sangoku116 avatar sangoku116 commented on June 11, 2024

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.

Freso avatar Freso commented on June 11, 2024

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.

sangoku116 avatar sangoku116 commented on June 11, 2024

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.

Freso avatar Freso commented on June 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.