You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/11/25 08:13:44 UTC
[GitHub] [beam] cozos opened a new issue, #24353: [Bug]: Cannot run Gradlew due to :buildSrc:compileGroovy error
cozos opened a new issue, #24353:
URL: https://github.com/apache/beam/issues/24353
### What happened?
I've followed the set up steps here: https://beam.apache.org/contribute/get-started-contributing/ and my `./gradlew :checkSetup` is failing due to the following:
```
./gradlew :checkSetup
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details
> Task :buildSrc:compileGroovy FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':buildSrc:compileGroovy'.
> BUG! exception in phase 'semantic analysis' in source unit '/Users/arwin.tio/projects/beam/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamJenkinsPlugin.groovy' Unsupported class file major version 61
* 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
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.9.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 7s
```
I am on a Mac OSX:
```
uname -a
Darwin C02DQ2E0MD6R 20.6.0 Darwin Kernel Version 20.6.0: Thu Sep 29 20:15:11 PDT 2022; root:xnu-7195.141.42~1/RELEASE_X86_64 x86_64
```
On Java 17:
```
java -version
openjdk version "17.0.2" 2022-01-18
OpenJDK Runtime Environment (build 17.0.2+8-86)
OpenJDK 64-Bit Server VM (build 17.0.2+8-86, mixed mode, sharing)
```
and:
```
./gradlew --version
------------------------------------------------------------
Gradle 6.9.1
------------------------------------------------------------
Build time: 2021-08-20 11:15:18 UTC
Revision: f0ddb54aaae0e44f0a7209c3c0274d506ea742a0
Kotlin: 1.4.20
Groovy: 2.5.12
Ant: Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM: 17.0.2 (Oracle Corporation 17.0.2+8-86)
OS: Mac OS X 11.7.1 x86_64
```
### Issue Priority
Priority: 2
### Issue Component
Component: build-system
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] kennknowles commented on issue #24353: [Bug]: Cannot run Gradlew due to :buildSrc:compileGroovy error
Posted by GitBox <gi...@apache.org>.
kennknowles commented on issue #24353:
URL: https://github.com/apache/beam/issues/24353#issuecomment-1335972351
This is not expected. Beam does support Java 17 and we have some tests that use it. But it could be that the development environment itself does not.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] kennknowles commented on issue #24353: [Bug]: Cannot run Gradlew due to :buildSrc:compileGroovy error
Posted by GitBox <gi...@apache.org>.
kennknowles commented on issue #24353:
URL: https://github.com/apache/beam/issues/24353#issuecomment-1334562803
The error does mean that a class file was compiled with Java 17 but then run on a JVM lower than 17.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] kennknowles commented on issue #24353: [Bug]: Cannot run Gradlew due to :buildSrc:compileGroovy error
Posted by GitBox <gi...@apache.org>.
kennknowles commented on issue #24353:
URL: https://github.com/apache/beam/issues/24353#issuecomment-1334563305
I don't have any ideas here, but if you do solve it can you let us know how?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] cozos commented on issue #24353: [Bug]: Cannot run Gradlew due to :buildSrc:compileGroovy error
Posted by GitBox <gi...@apache.org>.
cozos commented on issue #24353:
URL: https://github.com/apache/beam/issues/24353#issuecomment-1335885890
I solved this by installing Java11 on my machine and setting JAVA_HOME to the Java11 path. It turns out that Beam doesn't support Java 17.
I think what would've helped me here is something that says something like "System requirements: Java11" in the set up documentation.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org