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

FAILURE: Build failed with an exception #87

Open
DanGovo opened this issue Jan 29, 2020 · 5 comments
Open

FAILURE: Build failed with an exception #87

DanGovo opened this issue Jan 29, 2020 · 5 comments

Comments

@DanGovo
Copy link

DanGovo commented Jan 29, 2020

I have followed the installation steps to install java jdk and gradle and everything went on fine until I ran the gradle test command in terminal. In addition to the expected:
Task :test FAILED
GreeterTest > testThatGreeterReturnsTheCorrectGreeting FAILED
java.lang.AssertionError at GreeterTest.java:9
1 test completed, 1 failed
FAILURE: Build failed with an exception.

I am getting the following error which has stopped me from proceeding to the next steps.
FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':test'.

There were failing tests. See the report at: file:///home/dan/exercism/java/hello-world/build/reports/tests/test/index.html

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

BUILD FAILED in 22s
3 actionable tasks: 1 executed, 2 up-to-date

I have Gradle 6.1 and have tried to upgrade to Gradle 7.0 using the gradle wrapper --gradle-version 7.0 command without success.

@NobbZ NobbZ transferred this issue from exercism/cli Jan 29, 2020
@github-actions
Copy link

This repository is restricted to Exercism's core team. Please open issues in github.com/exercism/exercism.

@NobbZ
Copy link
Member

NobbZ commented Jan 29, 2020

Hi @DanGovo, so far it seems as if you had done everything correct.

The test seems to complain about you not having properly implemented the function you are supposed to install.

Perhaps you can show us the file with your Greeter implementation?

Also please use proper markdown to format your posts, especially code is a lot more readable if you enclose it in triple back ticks:

```java
// I'm a comment
```

@iHiD why is the bot closing this when I transfer the issue? Or do I need to transfer via exercism/exercism?

@iHiD iHiD reopened this Jan 29, 2020
@iHiD
Copy link
Member

iHiD commented Jan 29, 2020

@iHiD why is the bot closing this when I transfer the issue? Or do I need to transfer via exercism/exercism?

It's a bug with the GitHub Action. Sorry. @kntsoriano is aware of it.

@DanGovo
Copy link
Author

DanGovo commented Jan 31, 2020

Thank you @NobbZ I will try and use the proper markdown next time. However, my issue is on the error message below. And how to upgrade my current version 6.1 to version 7.0

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0

@NobbZ
Copy link
Member

NobbZ commented Jan 31, 2020

Thats just a warning, you can continue along for now. Once you update your gradle to version 7 you won't be able to continue working on exercism until the gradle-files have been updated.

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