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

How to build? #18

Closed
NatoBoram opened this issue Nov 24, 2020 · 7 comments
Closed

How to build? #18

NatoBoram opened this issue Nov 24, 2020 · 7 comments

Comments

@NatoBoram
Copy link

Hi! I'm looking to build this project, but I don't quite get it.

When I run gradlew build, I get this error :

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not initialize class org.codehaus.groovy.runtime.InvokerHelper

  • 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 809ms

@NatoBoram
Copy link
Author

Wrong command, I had to use gradle build. Sorry about that!

@coderbot16
Copy link
Member

Building with ./gradlew should work just fine, if it fails then that's a bit concerning.

@WalkerKnapp
Copy link
Contributor

This looks like the error you get when running new Gradle versions using JDK 7. Your global Gradle install is probably old, so it works with that Java version.

@NatoBoram
Copy link
Author

Here's my global config at the moment.

------------------------------------------------------------
Gradle: 6.7.1
------------------------------------------------------------

Build time:   2020-11-16 17:09:24 UTC
Revision:     2972ff02f3210d2ceed2f1ea880f026acfbab5c0

Kotlin:       1.3.72
Groovy:       2.5.12
Ant:          Apache Ant(TM) version 1.10.8 compiled on May 10 2020
JVM:          15.0.1 (Oracle Corporation 15.0.1+9-18)
OS:           Windows 10 10.0 amd64
openjdk 15.0.1 2020-10-20
OpenJDK Runtime Environment (build 15.0.1+9-18)
OpenJDK 64-Bit Server VM (build 15.0.1+9-18, mixed mode, sharing)
OS: Windows 10 Pro x86_64
Kernel: 10.0.19042
CPU: Intel i5-3570K (4) @ 3.470GHz
Memory: 10027MiB / 24519MiB

Is there something out of date?

@WalkerKnapp
Copy link
Contributor

That all looks fine, ¯\_(ツ)_/¯. It might be the other way around, with Iris's gradle wrapper not being up-to-date to support JDK 15. Try running this to upgrade its wrapper version, and try building again.

gradle wrapper --gradle-version=6.7.1

@NatoBoram
Copy link
Author

BUILD SUCCESSFUL in 16s
7 actionable tasks: 3 executed, 4 up-to-date

That does seem to work 🤔

@WalkerKnapp
Copy link
Contributor

Nice. @coderbot16 might want to bump the Gradle wrapper version for the project, then.

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

3 participants