2

Having following code: https://github.com/arturmkr/myReportProblem

Using Java 11.

When I try to execute it I am having issue:

./gradlew clean ui:test 

> Task :ui:test FAILED

com.db.demo.ui.DummyCheck > initializationError FAILED
    java.lang.NoClassDefFoundError at Class.java:-2
        Caused by: java.lang.ClassNotFoundException at BuiltinClassLoader.java:581

1 test completed, 1 failed

Who could help?

3

2 Answers 2

1

Ok now it works (but your tests fail):

  1. Add to your non-Spring boot project's build.gradle (I mean your repository project's build.gradle)

    bootJar 
    {
        enabled = false
    }

    jar 
    {
        enabled = true
    }
  1. ./gradlew clean build
Sign up to request clarification or add additional context in comments.

2 Comments

It doesn't help.
Well I downloaded your code and opened it in Intellij IDEA. Then added this part to the build.gradle and it worked. Check out your project in a clean directory and try again. May be it helps. Is it the same error again? Any other logs?
0

I just removed from build.gradle.kts:

jar { enabled = false }

And it helped

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.