Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[Fixed] Gradle Setup Fail - Windows 10


ral_falafel
 Share

Recommended Posts

Hello -

 

I've looked around but it appears most of the time this is assumed to actually work, yet it does not for me.

 

- Have JDK

- Have latest version(s) of forge:

- forge-1.8.8-11.15.0.1595-1.8.8-mdk

- Forge 2.0.2 (from SourceForge)

 

Running gradlew.bat setupDecompWorkspace

 

The error I'm receiving on 2.02 is:

 

 

19:48:58.491 [DEBUG] [org.gradle.configuration.project.BuildScriptProcessor] Timing: Running the build script took 7.159 secs

19:48:58.504 [ERROR] [org.gradle.BuildExceptionReporter]

19:48:58.510 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.

19:48:58.516 [ERROR] [org.gradle.BuildExceptionReporter]

19:48:58.520 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:

19:48:58.524 [ERROR] [org.gradle.BuildExceptionReporter] A problem occurred configuring root project 'ForgeGradle-2.0.2'.

19:48:58.528 [ERROR] [org.gradle.BuildExceptionReporter] > Could not resolve all dependencies for configuration ':classpath'.

19:48:58.533 [ERROR] [org.gradle.BuildExceptionReporter]    > Could not determine artifacts for oauth.signpost:oauth-signpost:1.2.1.2

19:48:58.538 [ERROR] [org.gradle.BuildExceptionReporter]      > Could not get resource 'https://plugins.gradle.org/m2/oauth/signpost/oauth-signpost/1.2.1.2/oauth-signpost-1.2.1.2.jar'.

19:48:58.543 [ERROR] [org.gradle.BuildExceptionReporter]          > Could not HEAD 'https://plugins.gradle.org/m2/oauth/signpost/oauth-signpost/1.2.1.2/oauth-signpost-1.2.1.2.jar'.

19:48:58.549 [ERROR] [org.gradle.BuildExceptionReporter]            > peer not authenticated

19:48:58.554 [ERROR] [org.gradle.BuildExceptionReporter]

19:48:58.558 [ERROR] [org.gradle.BuildExceptionReporter] * Try:

19:48:58.562 [ERROR] [org.gradle.BuildExceptionReporter] Run with --stacktrace option to get the stack trace.

19:48:58.567 [LIFECYCLE] [org.gradle.BuildResultLogger]

19:48:58.572 [LIFECYCLE] [org.gradle.BuildResultLogger] BUILD FAILED

19:48:58.576 [LIFECYCLE] [org.gradle.BuildResultLogger]

19:48:58.580 [LIFECYCLE] [org.gradle.BuildResultLogger] Total time: 8.978 secs

 

 

The error I'm receiving with Forge 1.8.8 is:

 

FAILURE: Build failed with an exception.

 

* What went wrong:

A problem occurred configuring root project 'forge-1.8.8-11.15.0.1595-1.8.8-mdk'.

> Could not resolve all dependencies for configuration ':classpath'.

  > Could not download trove4j.jar (net.sf.trove4j:trove4j:2.1.0)

      > Could not get resource 'https://jcenter.bintray.com/net/sf/trove4j/trove4j/2.1.0/trove4j-2.1.0.jar'.

        > Could not GET 'https://jcenter.bintray.com/net/sf/trove4j/trove4j/2.1.0/trove4j-2.1.0.jar'.

            > peer not authenticated

 

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

 

BUILD FAILED

 

Total time: 3.777 secs

 

 

 

Any assistance or pointers would be appreciated.

Link to comment
Share on other sites

Version: JDK 1.7.0_60

 

Don't worry about the 2.0.2, then, that was me trying to find a newer version that worked. I'll just stick with 1.8.8.

 

So part of it seemed to fix itself after my ISP stopped being annoying.

 

The other part I had to fix with the method you posted. Perhaps this is a new thing for Windows 10? I'm not sure. Here's what all I had to do:

 

keytool -import -alias repo1.maven.org -file "C:\Program Files\Java\jdk1.7.0_60\jre\lib\security\maven1.cer" -keystore cacerts -storepass somepass

keytool -import -alias libraries.minecraft.net -file "C:\Program Files\Java\jdk1.7.0_60\jre\lib\security\minelib1.cer" -keystore cacerts -storepass somepass

keytool -import -alias georoot -file "C:\Program Files\Java\jdk1.7.0_60\jre\lib\security\geo1.cer" -keystore cacerts -storepass somepass

keytool -import -alias geointer -file "C:\Program Files\Java\jdk1.7.0_60\jre\lib\security\geo2.cer" -keystore cacerts -storepass somepass

 

(You can save there directly, just add yourself to the full control list for the folder.)

 

The certs referenced above can be procured from:

https://repo1.maven.org/ (First one)

https://libraries.minecraft.net/ (Last three; use the process here: http://docs.bvstools.com/home/ssl-documentation/exporting-certificate-authorities-cas-from-a-website )

 

I hope this helps someone in the future.

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.