rest.li icon indicating copy to clipboard operation
rest.li copied to clipboard

cannot run quickstart example

Open jkl0898 opened this issue 2 years ago • 2 comments

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.

  • What went wrong: Execution failed for task ':api:generateDataTemplate'.

'other' has different root

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

jkl0898 avatar Dec 20 '22 11:12 jkl0898

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

coderextreme avatar Jul 29 '23 09:07 coderextreme

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

unfortunately the needed versions are nowhere documented

Patterner avatar Aug 09 '23 10:08 Patterner