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

cannot run quickstart example #874

Open
jkl0898 opened this issue Dec 20, 2022 · 2 comments
Open

cannot run quickstart example #874

jkl0898 opened this issue Dec 20, 2022 · 2 comments

Comments

@jkl0898
Copy link

jkl0898 commented Dec 20, 2022

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

@coderextreme
Copy link

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
Copy link

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

unfortunately the needed versions are nowhere documented

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants