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 issues #769

Open
topchyan opened this issue Dec 27, 2024 · 3 comments
Open

Build issues #769

topchyan opened this issue Dec 27, 2024 · 3 comments

Comments

@topchyan
Copy link

Cloning into 'audiveris'...
Switched to a new branch 'development'
branch 'development' set up to track 'origin/development'.
Already up to date.

Configure project :app
hostOS: linux-x86_64
theMinJavaVersion: 21
theTessdataTag: 4.1.0

Configure project :schemas
theXsltTransformer: XsltProc

Task :app:clean UP-TO-DATE
Task :flatpak:clean UP-TO-DATE
Task :schemas:clean UP-TO-DATE
Task :windows-installer:clean UP-TO-DATE

BUILD SUCCESSFUL in 894ms
4 actionable tasks: 4 up-to-date

Configure project :app
hostOS: linux-x86_64
theMinJavaVersion: 21
theTessdataTag: 4.1.0

Configure project :schemas
theXsltTransformer: XsltProc

Task :app:git_build
programBuild: 3e1f524

Task :app:generateProgramId
> Task :app:compileJava FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:compileJava'.

error: invalid source release: 21

  • 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
3 actionable tasks: 3 executed

Configure project :app
hostOS: linux-x86_64
theMinJavaVersion: 21
theTessdataTag: 4.1.0

Configure project :schemas
theXsltTransformer: XsltProc

Task :app:git_build
programBuild: 3e1f524

Task :app:generateProgramId
> Task :app:compileJava FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:compileJava'.

error: invalid source release: 21

  • 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
3 actionable tasks: 3 executed

Exit code: 1

@hbitteur
Copy link
Contributor

error: invalid source release: 21

Sounds like you have a too old Java version, not able to support the 21 version.
Please check with:

java -version

@topchyan
Copy link
Author

topchyan commented Feb 9, 2025

Configure project :app
hostOS: linux-x86_64
targetOS: linux-x86_64
theMinJavaVersion: 21
version: 5.4
tag: 5.4
theTessdataTag: 4.1.0

Configure project :schemas
theXsltTransformer: XsltProc

Task :app:git_build
programBuild: c664e2b

Task :app:compileJava FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:compileJava'.

error: invalid source release: 21

  • 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 15s
3 actionable tasks: 3 executed

Configure project :app
hostOS: linux-x86_64
targetOS: linux-x86_64
theMinJavaVersion: 21
version: 5.4
tag: 5.4
theTessdataTag: 4.1.0

Configure project :schemas
theXsltTransformer: XsltProc

Task :app:git_build
programBuild: c664e2b

Task :app:compileJava FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:compileJava'.

error: invalid source release: 21

  • 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
3 actionable tasks: 3 executed

@hbitteur
Copy link
Contributor

hbitteur commented Feb 9, 2025

Version 5.4 has just been released.
Both master and development branches now require Java 21.

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

2 participants