linkedin / rest.li

Rest.li is a REST+JSON framework for building robust, scalable service architectures using dynamic discovery and simple asynchronous APIs.
rest.li
Other
2.51k stars 546 forks source link

cannot run quickstart example #874

Open jkl0898 opened 1 year ago

jkl0898 commented 1 year ago

example url: https://github.com/linkedin/rest.li/tree/master/examples/quickstart

exec cmd: gradle publishRestliIdl

error log:

Task :api:generateDataTemplate FAILED There are 1 data schema input files. Using input root folder: D:\code\tool\linkedin\rest.li\examples\quickstart\api\src\main\pegasus

FAILURE: Build failed with an exception.

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.6/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 15s 1 actionable task: 1 executed

env: os: windows10 gradle version: 6.6

coderextreme commented 1 year ago

Hey guys, I'm building with gradle 8.2.1.

$ gradle --status
   PID STATUS   INFO
 11696 IDLE     8.2.1

Only Daemons for the current Gradle version are displayed. For more on this, please refer to https://docs.gradle.org/8.2.1/userguide/gradle_daemon.html#sec:status in the Gradle documentation.
~/rest.li (master)
$ ./gradlew --status
   PID STATUS   INFO
 11124 IDLE     5.2.1

Only Daemons for the current Gradle version are displayed. See https://docs.gradle.org/5.2.1/userguide/gradle_daemon.html#sec:status

~/rest.li (master)
$ ./gradlew build

FAILURE: Build failed with an exception.

* What went wrong:
Could not initialize class org.codehaus.groovy.runtime.InvokerHelper
> Exception java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.reflection.ReflectionCache [in thread "Daemon worker"]

* 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 0s

~/rest.li/examples/quickstart (master)
$ gradle build

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\john\rest.li\examples\quickstart\api\build.gradle' line: 1

* What went wrong:
A problem occurred evaluating project ':api'.
> 'void org.gradle.api.tasks.bundling.Jar.setClassifier(java.lang.String)'

* 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 825ms
Patterner commented 1 year ago

i tried a couple of java and gradle version but it always fails.

unfortunately the needed versions are nowhere documented