Gradle task failed

Published by MrCOOLGUYY on Fri, 02/16/2018 - 08:42
Status
Works as designed
Type
Product/platform
MCreator/Windows
Priority
Normal
Issue description

I have tried to install mcreator several tomes but it always says gradle task failed

i have

windows 7 64 bit

3 gb ram

2 gb graphics card

 and a dual core processor

and have a mobile 4g internet connection

bug report 

MCreator was not able to connect to the internet. Gradle tasks might not work.
   
Executing gradle command: cleanCache clean setupDecompWorkspace --refresh-dependencies
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
D:\mcreat>cd forge
D:\mcreat\forge>SET "JAVA_HOME=D:\mcreat\jdk64\"
D:\mcreat\forge>SET JAVA_EXE=%JAVA_HOME%\bin\java.exe
D:\mcreat\forge>SET PATH=%JAVA_HOME%\bin\;%PATH%
D:\mcreat\forge>gradlew -Dorg.gradle.jvmargs="-Xms625m -Xmx2048m" cleanCache clean setupDecompWorkspace --refresh-dependencies 
FAILURE: Build failed with an exception.
* What went wrong:
BUILD FAILED
A problem occurred configuring root project 'forge'.
> Could not resolve all dependencies for configuration ':classpath'.
Total time: 10.522 secs
> Could not resolve net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT.
     Required by:
         :forge:unspecified
> Could not resolve net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT.
> Unable to load Maven meta-data from https://jcenter.bintray.com/net/minecraftforge/gradle/ForgeGradle/2.3-S….
> Could not GET 'https://jcenter.bintray.com/net/minecraftforge/gradle/ForgeGradle/2.3-S…'.
> jcenter.bintray.com
> Could not resolve net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT.
> Unable to load Maven meta-data from http://files.minecraftforge.net/maven/net/minecraftforge/gradle/ForgeGr….
> Could not GET 'http://files.minecraftforge.net/maven/net/minecraftforge/gradle/ForgeGr…'.
> files.minecraftforge.net
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
D:\mcreat\forge>
Task completed with return code 0 in 12749 milliseconds
   
Executing gradle command: cleanCache clean setupDecompWorkspace --refresh-dependencies
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
D:\mcreat>cd forge
D:\mcreat\forge>SET "JAVA_HOME=D:\mcreat\jdk64\"
D:\mcreat\forge>SET JAVA_EXE=%JAVA_HOME%\bin\java.exe
D:\mcreat\forge>SET PATH=%JAVA_HOME%\bin\;%PATH%
D:\mcreat\forge>gradlew -Dorg.gradle.jvmargs="-Xms625m -Xmx2048m" cleanCache clean setupDecompWorkspace --refresh-dependencies 
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
   at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
   at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1959)
   at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)
   at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)
   at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1514)
   at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)
   at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1026)
   at sun.security.ssl.Handshaker.process_record(Handshaker.java:961)
   at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1072)
   at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1385)
   at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1413)
   at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1397)
   at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559)
   at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractD…
   at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImp…
   at net.minecraftforge.gradle.common.BasePlugin.getWithEtag(BasePlugin.java:724)
   at net.minecraftforge.gradle.common.BasePlugin.getWithEtag(BasePlugin.java:685)
   at net.minecraftforge.gradle.common.BasePlugin.getRemoteJsons(BasePlugin.java:233)
   at net.minecraftforge.gradle.common.BasePlugin.apply(BasePlugin.java:183)
   at net.minecraftforge.gradle.common.BasePlugin.apply(BasePlugin.java:92)
   at org.gradle.api.internal.plugins.ImperativeOnlyPluginApplicator.applyImperative(ImperativeOnlyPluginApplicator.java:35)
   at org.gradle.api.internal.plugins.RuleBasedPluginApplicator.applyImperative(RuleBasedPluginApplicator.java:43)
   at org.gradle.api.internal.plugins.DefaultPluginManager.doApply(DefaultPluginManager.java:137)
   at org.gradle.api.internal.plugins.DefaultPluginManager.apply(DefaultPluginManager.java:112)
   at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.applyType(DefaultObjectConfigurationAction.java:113)
   at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.access$200(DefaultObjectConfigurationAction.java:36)
   at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction$3.run(DefaultObjectConfigurationAction.java:80)
   at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.execute(DefaultObjectConfigurationAction.java:136)
   at org.gradle.api.internal.project.AbstractPluginAware.apply(AbstractPluginAware.java:46)
   at org.gradle.api.internal.project.ProjectScript.apply(ProjectScript.java:34)
   at org.gradle.api.Script$apply$0.callCurrent(Unknown Source)
   at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:52)
   at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:154)
   at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:166)
   at build_crwvcia6g5cay2o3n09zvxl9c.run(D:\mcreat\forge\build.gradle:10)
   at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:91)
   at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl$2.run(DefaultScriptPluginFactory.java:177)
   at org.gradle.configuration.ProjectScriptTarget.addConfiguration(ProjectScriptTarget.java:77)
   at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:182)
   at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:38)
   at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:25)
   at org.gradle.configuration.project.ConfigureActionsProjectEvaluator.evaluate(ConfigureActionsProjectEvaluator.java:34)
   at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:55)
   at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:540)
   at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:93)
   at org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:42)
   at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:35)
   at org.gradle.initialization.DefaultGradleLauncher$2.run(DefaultGradleLauncher.java:124)
   at org.gradle.internal.Factories$1.create(Factories.java:22)
   at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)
   at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:53)
   at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:121)
   at org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:32)
   at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:98)
   at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:92)
   at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)
   at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:63)
   at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:92)
   at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:83)
   at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:99)
   at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)
   at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
   at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:48)
   at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:30)
   at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:81)
   at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:46)
   at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:52)
   at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
   at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
   at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:37)
   at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
   at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)
   at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
   at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34)
   at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
   at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74)
   at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72)
   at org.gradle.util.Swapper.swap(Swapper.java:38)
   at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72)
   at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
   at org.gradle.launcher.daemon.server.health.DaemonHealthTracker.execute(DaemonHealthTracker.java:40)
BUILD FAILED
   at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecuti   at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:60)
on.java:120)
Total time: 1 mins 0.555 secs
   at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
   at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
   at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:72)
   at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
   at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
   at org.gradle.launcher.daemon.server.health.HintGCAfterBuild.execute(HintGCAfterBuild.java:41)
   at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
   at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50)
   at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:237)
   at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)
   at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   at java.lang.Thread.run(Thread.java:745)
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
   at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:397)
   at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:302)
   at sun.security.validator.Validator.validate(Validator.java:260)
   at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324)
   at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229)
   at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124)
   at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1496)
   ... 92 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
   at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141)
   at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126)
   at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)
   at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:392)
   ... 98 more
FAILURE: Build failed with an exception.
* Where:
Build file 'D:\mcreat\forge\build.gradle' line: 10
* What went wrong:
A problem occurred evaluating root project 'forge'.
> Failed to apply plugin [id 'net.minecraftforge.gradle.forge']
> Unable to obtain url ([https://launchermeta.mojang.com/mc/game/version_manifest.json]) with etag!
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
D:\mcreat\forge>
Task completed with return code 0 in 61825 milliseconds
   
Executing gradle command: cleanCache clean setupDecompWorkspace --refresh-dependencies
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
D:\mcreat>cd forge
D:\mcreat\forge>SET "JAVA_HOME=D:\mcreat\jdk64\"
D:\mcreat\forge>SET JAVA_EXE=%JAVA_HOME%\bin\java.exe
D:\mcreat\forge>SET PATH=%JAVA_HOME%\bin\;%PATH%
D:\mcreat\forge>gradlew -Dorg.gradle.jvmargs="-Xms625m -Xmx2048m" cleanCache clean setupDecompWorkspace --refresh-dependencies 
FAILURE: Build failed with an exception.
* What went wrong:
BUILD FAILED
Total time: 1 mins 51.902 secs
A problem occurred configuring root project 'forge'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not resolve com.github.abrarsyed.jastyle:jAstyle:1.3.
     Required by:
:forge:unspecified 
      > net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT
> Could not resolve com.github.abrarsyed.jastyle:jAstyle:1.3.
> Could not get resource 'https://jcenter.bintray.com/com/github/abrarsyed/jastyle/jAstyle/1.3/jA…'.
> Could not HEAD 'https://jcenter.bintray.com/com/github/abrarsyed/jastyle/jAstyle/1.3/jA…'.
> Connect to repo.jfrog.org:443 [repo.jfrog.org/34.204.33.255, repo.jfrog.org/52.72.224.151] failed: Connection timed out: connect
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
D:\mcreat\forge>
Task completed with return code 0 in 113660 milliseconds

 

Issue comments

You are trying to install MCreator on the computer without internet. Or you have blocked the internet access to MCreator when the firewall asked you to allow internet access. Add MCreator as an exception to the firewall and try again.



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.