How to build jd-core from https://github.com/java-decompiler/jd-core with OpenJDK from8 to 12 installed?

after i installed OpenJDK from8 to 12 i executed all commands to build it from this website GitHub - java-decompiler/jd-core: JD-Core is a JAVA decompiler written in JAVA. succesfully; until i executed ./gradlew build command and i got this error:

Starting a Gradle Daemon, 4 incompatible and 1 stopped Daemons could not be reused, use --status for details
Task :test
org.jd.core.v1.JarFileToJavaSourceTest > testScribe FAILED
junit.framework.AssertionFailedError at JarFileToJavaSourceTest.java:229
org.jd.core.v1.JavaAnonymousClassTest > testJdk150AnonymousClass FAILED
junit.framework.AssertionFailedError at JavaAnonymousClassTest.java:72
org.jd.core.v1.JavaArrayTest > testJdk150Array FAILED
junit.framework.AssertionFailedError at JavaArrayTest.java:62
org.jd.core.v1.JavaAssertTest > testJdk150Assert FAILED
junit.framework.AssertionFailedError at JavaAssertTest.java:80
org.jd.core.v1.JavaBasicTest > testJdk142Basic FAILED
junit.framework.AssertionFailedError at JavaBasicTest.java:216
org.jd.core.v1.JavaBasicTest > testJdk118Basic FAILED
junit.framework.AssertionFailedError at JavaBasicTest.java:193
org.jd.core.v1.JavaLoopTest > testJdk150For FAILED
junit.framework.AssertionFailedError at JavaLoopTest.java:344
org.jd.core.v1.JavaLoopTest > testJdk160For FAILED
junit.framework.AssertionFailedError at JavaLoopTest.java:368
org.jd.core.v1.JavaLoopTest > testIbmJ9For FAILED
junit.framework.AssertionFailedError at JavaLoopTest.java:391
org.jd.core.v1.JavaSwitchTest > testEclipseJavaCompiler321Switch FAILED
junit.framework.AssertionFailedError at JavaSwitchTest.java:133
org.jd.core.v1.JavaSwitchTest > testEclipseJavaCompiler3130Switch FAILED
junit.framework.AssertionFailedError at JavaSwitchTest.java:148
org.jd.core.v1.JavaTernaryOperatorTest > testJdk118TernaryOperator FAILED
junit.framework.AssertionFailedError at JavaTernaryOperatorTest.java:65
org.jd.core.v1.JavaTryCatchFinallyTest > testEclipseJavaCompiler370TryCatchFinally FAILED
junit.framework.AssertionFailedError at JavaTryCatchFinallyTest.java:181
org.jd.core.v1.JavaTryCatchFinallyTest > testJdk118TryCatchFinally FAILED
junit.framework.AssertionFailedError at JavaTryCatchFinallyTest.java:261
org.jd.core.v1.JavaTryCatchFinallyTest > testEclipseJavaCompiler3130TryCatchFinally FAILED
junit.framework.AssertionFailedError at JavaTryCatchFinallyTest.java:221
org.jd.core.v1.JavaTryCatchFinallyTest > testEclipseJavaCompiler321TryCatchFinally FAILED
junit.framework.AssertionFailedError at JavaTryCatchFinallyTest.java:137
org.jd.core.v1.JavaTryCatchFinallyTest > testJdk131TryCatchFinally FAILED
junit.framework.AssertionFailedError at JavaTryCatchFinallyTest.java:297
323 tests completed, 17 failed
Task :test FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':test'.
There were failing tests. See the report at: file:///C:/jd-core%20deocmpiler%20github%20repository%20built%20place/jd-core/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
BUILD FAILED in 2m 57s
5 actionable tasks: 5 executed

and then i entered for help in help.gradle.org and created a post saying my before issue; to try to build jd-core github repository and when i executed the command; that i was asked to give the info that gives the command ./gradlew build --scan in help.gradle.org; i gave them the error i got and that error was:

Task :test
org.jd.core.v1.JarFileToJavaSourceTest > testScribe FAILED
junit.framework.AssertionFailedError at JarFileToJavaSourceTest.java:229
org.jd.core.v1.JavaAnonymousClassTest > testJdk150AnonymousClass FAILED
junit.framework.AssertionFailedError at JavaAnonymousClassTest.java:72
org.jd.core.v1.JavaArrayTest > testJdk150Array FAILED
junit.framework.AssertionFailedError at JavaArrayTest.java:62
org.jd.core.v1.JavaAssertTest > testJdk150Assert FAILED
junit.framework.AssertionFailedError at JavaAssertTest.java:80
org.jd.core.v1.JavaBasicTest > testJdk142Basic FAILED
junit.framework.AssertionFailedError at JavaBasicTest.java:216
org.jd.core.v1.JavaBasicTest > testJdk118Basic FAILED
junit.framework.AssertionFailedError at JavaBasicTest.java:193
org.jd.core.v1.JavaLoopTest > testJdk150For FAILED
junit.framework.AssertionFailedError at JavaLoopTest.java:344
org.jd.core.v1.JavaLoopTest > testJdk160For FAILED
junit.framework.AssertionFailedError at JavaLoopTest.java:368
org.jd.core.v1.JavaLoopTest > testIbmJ9For FAILED
junit.framework.AssertionFailedError at JavaLoopTest.java:391
org.jd.core.v1.JavaSwitchTest > testEclipseJavaCompiler321Switch FAILED
junit.framework.AssertionFailedError at JavaSwitchTest.java:133
org.jd.core.v1.JavaSwitchTest > testEclipseJavaCompiler3130Switch FAILED
junit.framework.AssertionFailedError at JavaSwitchTest.java:148
org.jd.core.v1.JavaTernaryOperatorTest > testJdk118TernaryOperator FAILED
junit.framework.AssertionFailedError at JavaTernaryOperatorTest.java:65
org.jd.core.v1.JavaTryCatchFinallyTest > testEclipseJavaCompiler370TryCatchFinally FAILED
junit.framework.AssertionFailedError at JavaTryCatchFinallyTest.java:181
org.jd.core.v1.JavaTryCatchFinallyTest > testJdk118TryCatchFinally FAILED
junit.framework.AssertionFailedError at JavaTryCatchFinallyTest.java:261
org.jd.core.v1.JavaTryCatchFinallyTest > testEclipseJavaCompiler3130TryCatchFinally FAILED
junit.framework.AssertionFailedError at JavaTryCatchFinallyTest.java:221
org.jd.core.v1.JavaTryCatchFinallyTest > testEclipseJavaCompiler321TryCatchFinally FAILED
junit.framework.AssertionFailedError at JavaTryCatchFinallyTest.java:137
org.jd.core.v1.JavaTryCatchFinallyTest > testJdk131TryCatchFinally FAILED
junit.framework.AssertionFailedError at JavaTryCatchFinallyTest.java:297
323 tests completed, 17 failed
Task :test FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':test'.
There were failing tests. See the report at: file:///C:/jd-core%20deocmpiler%20github%20repository%20built%20place/jd-core/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
BUILD FAILED in 2m 18s
5 actionable tasks: 1 executed, 4 up-to-date
The build scan was not published due to a configuration problem.
The Gradle Terms of Service have not been agreed to.
To agree to the Gradle Terms of Service, include the following in your root project's configuration:
buildScan { termsOfServiceUrl = "https://gradle.com/terms-of-service"; termsOfServiceAgree = "yes" }
For more information, please see https://gradle.com/scans/help/plugin-terms-of-service.
Alternatively, if you are using Gradle Enterprise, specify the server location.
For more information, please see https://gradle.com/scans/help/plugin-enterprise-config.

and that didn´t helped me to build jd-core; how can i build it ?

This is not so much a Gradle question and is thus a bit misplaced in this forum.
There are simply 17 of 323 tests failing.
Why they are failing you can see in the test report printed in the output: file:///C:/jd-core%20deocmpiler%20github%20repository%20built%20place/jd-core/build/reports/tests/test/index.html.
But why they are failing or what do do is more a question for the jd-core project, not for the Gradle community.
Actually, for me there is only one failing test.

Why the build scan couldn’t be published is also strange, for me it worked perfectly fine.
After the build finished it asked whether I agree to the ToS and publish the build scan and if I type “yes”, it publishes the scan.