Problemas com versões do Java e Gradle (test java-6)

No desafio java-0 recebi mensagens de compatibilidade entre as versões do Gradle e Java. Mas consegui resolver.

Agora, no java-6, o erro piorou! rsrs

Segue abaixo:

Task :compileJava UP-TO-DATE
Task :processResources NO-SOURCE
Task :classes UP-TO-DATE
Task :compileTestJava UP-TO-DATE
Task :processTestResources NO-SOURCE
Task :testClasses UP-TO-DATE

Task :test FAILED
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by worker.org.gradle.internal.reflect.JavaMethod (file:/home/yandiro/.gradle/caches/4.9/workerMain/gradle-worker.jar) to method java.lang.ClassLoader.getPackages()
WARNING: Please consider reporting this to the maintainers of worker.org.gradle.internal.reflect.JavaMethod
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

challenge.CriptografiaCesarianaTest > deveRetornarErroQuandoCriptografaTextoEhNulo FAILED
java.lang.Exception
Caused by: java.lang.UnsupportedOperationException at CriptografiaCesarianaTest.java:28

challenge.CriptografiaCesarianaTest > deveConverterCaracteresParaMinusculoNaDescriptografia FAILED
java.lang.UnsupportedOperationException at CriptografiaCesarianaTest.java:74

challenge.CriptografiaCesarianaTest > deveManterOsNumerosNaCriptografia FAILED
java.lang.UnsupportedOperationException at CriptografiaCesarianaTest.java:56

challenge.CriptografiaCesarianaTest > deveConverterCaracteresParaMinusculoNaCriptografia FAILED
java.lang.UnsupportedOperationException at CriptografiaCesarianaTest.java:68

challenge.CriptografiaCesarianaTest > deveManterOsNumerosNaDescriptografia FAILED
java.lang.UnsupportedOperationException at CriptografiaCesarianaTest.java:62

challenge.CriptografiaCesarianaTest > deveRetornarErroQuandoDesCriptografaTextoEhNulo FAILED
java.lang.Exception
Caused by: java.lang.UnsupportedOperationException at CriptografiaCesarianaTest.java:38

challenge.CriptografiaCesarianaTest > deveRetornarErroQuandoODesCriptografaTextoEhVazio FAILED
java.lang.Exception
Caused by: java.lang.UnsupportedOperationException at CriptografiaCesarianaTest.java:33

challenge.CriptografiaCesarianaTest > deveCriptografarTexto FAILED
java.lang.UnsupportedOperationException at CriptografiaCesarianaTest.java:44

challenge.CriptografiaCesarianaTest > deveRetornarErroQuandoOCriptografaTextoEhVazio FAILED
java.lang.Exception
Caused by: java.lang.UnsupportedOperationException at CriptografiaCesarianaTest.java:23

challenge.CriptografiaCesarianaTest > deveDescriptografarTexto FAILED
java.lang.UnsupportedOperationException at CriptografiaCesarianaTest.java:50

10 tests completed, 10 failed

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:test’.

There were failing tests. See the report at: file:///home/yandiro/codenation/java-6/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

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

Ops, algo errado aconteceu.

1 Curtida

Olá @Turkey6b4, tudo bem?

Quais versões do Gradle e do Java você está utilizando?

Abraços