Jump to content

gradle setupDecompWorkspace not working on OSX


libarclite

Recommended Posts

Attempting to build ExampleMod included with forge-1.7.2-10.12.0.982-src, following the tutorial instructions I tried:

 

gradle --info setupDevWorkspace

 

and got the following error messages:

 

Starting Build

Settings evaluated using empty settings script.

Projects loaded. Root project using build file '/private/var/tmp/forge-1.7.2-10.12.0.982-src/build.gradle'.

Included projects: [root project 'forge-1.7.2-10.12.0.982-src']

Evaluating root project 'forge-1.7.2-10.12.0.982-src' using build file '/private/var/tmp/forge-1.7.2-10.12.0.982-src/build.gradle'.

Compiling build file '/private/var/tmp/forge-1.7.2-10.12.0.982-src/build.gradle' using StatementExtractingScriptTransformer.

Compiling build file '/private/var/tmp/forge-1.7.2-10.12.0.982-src/build.gradle' using BuildScriptTransformer.

****************************

Powered By MCP:           

http://mcp.ocean-labs.de/ 

Searge, ProfMobius, Fesh0r,

R4wk, ZeuX, IngisKahn     

Resolving:  MCP Data version : {MCP_VERSION}

Resolved:  MCP Data version : unknown

MCP Data version : unknown

****************************

Resolving: {BUILD_DIR}/unpacked/dev.json

Resolved:  /private/var/tmp/forge-1.7.2-10.12.0.982-src/build/unpacked/dev.json

Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https://libraries.minecraft.net/net/minecraftforge/forge/1.7.2-10.12.0.982/forge-1.7.2-10.12.0.982.pom]

Resolving: {CACHE_DIR}/minecraft/net/minecraftforge/forge/{API_VERSION}/forge-{API_VERSION}-fmlinjected.jar

Resolved:  /Volumes/Users/beard/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.0.982/forge-1.7.2-10.12.0.982-fmlinjected.jar

Resolving: {BUILD_DIR}/sources/java

Resolved:  /private/var/tmp/forge-1.7.2-10.12.0.982-src/build/sources/java

Resolving: {CACHE_DIR}/minecraft/net/minecraftforge/forge/{API_VERSION}/forge-{API_VERSION}-mcp.jar

Resolved:  /Volumes/Users/beard/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.0.982/forge-1.7.2-10.12.0.982-mcp.jar

All projects evaluated.

Resolving: {BUILD_DIR}/unpacked/conf/packaged.srg

Resolved:  /private/var/tmp/forge-1.7.2-10.12.0.982-src/build/unpacked/conf/packaged.srg

Resolving: {BUILD_DIR}/unpacked/mappings/methods.csv

Resolved:  /private/var/tmp/forge-1.7.2-10.12.0.982-src/build/unpacked/mappings/methods.csv

Resolving: {BUILD_DIR}/unpacked/mappings/fields.csv

Resolved:  /private/var/tmp/forge-1.7.2-10.12.0.982-src/build/unpacked/mappings/fields.csv

Resolving: /Volumes/Users/beard/.gradle/caches/modules-2/files-2.1/net.minecraftforge/forge/1.7.2-10.12.0.982/15bef93585b8a794365162090d6f5951814197cd/forge-1.7.2-10.12.0.982-userdev.jar

Resolved:  /Volumes/Users/beard/.gradle/caches/modules-2/files-2.1/net.minecraftforge/forge/1.7.2-10.12.0.982/15bef93585b8a794365162090d6f5951814197cd/forge-1.7.2-10.12.0.982-userdev.jar

Resolving: {CACHE_DIR}/minecraft/net/minecraftforge/forge/{API_VERSION}/forge-{API_VERSION}.jar

Resolved:  /Volumes/Users/beard/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.0.982/forge-1.7.2-10.12.0.982.jar

Resolving: {BUILD_DIR}/unpacked/conf/packaged.exc

Resolved:  /private/var/tmp/forge-1.7.2-10.12.0.982-src/build/unpacked/conf/packaged.exc

Resolving: {BUILD_DIR}/unpacked/conf/exceptor.json

Resolved:  /private/var/tmp/forge-1.7.2-10.12.0.982-src/build/unpacked/conf/exceptor.json

Resolving: {BUILD_DIR}/unpacked/conf/notch-mcp.srg

Resolved:  /private/var/tmp/forge-1.7.2-10.12.0.982-src/build/unpacked/conf/notch-mcp.srg

Resolving: {BUILD_DIR}/unpacked/src/main/resources/fml_at.cfg

Resolved:  /private/var/tmp/forge-1.7.2-10.12.0.982-src/build/unpacked/src/main/resources/fml_at.cfg

Resolving: {BUILD_DIR}/unpacked/src/main/resources/forge_at.cfg

Resolved:  /private/var/tmp/forge-1.7.2-10.12.0.982-src/build/unpacked/src/main/resources/forge_at.cfg

Resolving: {BUILD_DIR}/unpacked/src/main/resources

Resolved:  /private/var/tmp/forge-1.7.2-10.12.0.982-src/build/unpacked/src/main/resources

Resolving: {CACHE_DIR}/minecraft/net/minecraft/minecraft_merged/{MC_VERSION}/minecraft_merged-{MC_VERSION}.jar

Resolved:  /Volumes/Users/beard/.gradle/caches/minecraft/net/minecraft/minecraft_merged/1.7.2/minecraft_merged-1.7.2.jar

Resolving: {BUILD_DIR}/unpacked/devbinpatches.pack.lzma

Resolved:  /private/var/tmp/forge-1.7.2-10.12.0.982-src/build/unpacked/devbinpatches.pack.lzma

Resolving: {BUILD_DIR}/unpacked/binaries.jar

Resolved:  /private/var/tmp/forge-1.7.2-10.12.0.982-src/build/unpacked/binaries.jar

Resolving: {CACHE_DIR}/minecraft/net/minecraft/minecraft_server/{MC_VERSION}/minecraft_server-{MC_VERSION}.jar

Resolved:  /Volumes/Users/beard/.gradle/caches/minecraft/net/minecraft/minecraft_server/1.7.2/minecraft_server-1.7.2.jar

Resolving: {CACHE_DIR}/minecraft/net/minecraft/minecraft/{MC_VERSION}/minecraft-{MC_VERSION}.jar

Resolved:  /Volumes/Users/beard/.gradle/caches/minecraft/net/minecraft/minecraft/1.7.2/minecraft-1.7.2.jar

Resolving: {BUILD_DIR}/unpacked/conf/mcp_merge.cfg

Resolved:  /private/var/tmp/forge-1.7.2-10.12.0.982-src/build/unpacked/conf/mcp_merge.cfg

Selected primary task 'setupDevWorkspace'

Tasks to be executed: [task ':extractUserDev', task ':getAssetsIndex', task ':getAssets', task ':copyAssets', task ':downloadClient', task ':downloadServer', task ':mergeJars', task ':applyBinPatches', task ':downloadMcpTools', task ':genSrgs', task ':deobfBinJar', task ':extractNatives', task ':setupDevWorkspace']

:extractUserDev (Thread[main,5,main]) started.

:extractUserDev

Executing task ':extractUserDev' (up-to-date check took 0.0 secs) due to:

  Task has not declared any outputs.

Resolving: {BUILD_DIR}/unpacked

Resolved:  /private/var/tmp/forge-1.7.2-10.12.0.982-src/build/unpacked

Resolving: {BUILD_DIR}/unpacked/dev.json

Resolved:  /private/var/tmp/forge-1.7.2-10.12.0.982-src/build/unpacked/dev.json

Cached resource is up-to-date (lastModified: Tue Nov 26 08:00:19 PST 2013). [HTTP: https://libraries.minecraft.net/org/lwjgl/lwjgl/lwjgl-platform/2.9.1-nightly-20131017/lwjgl-platform-2.9.1-nightly-20131017.pom]'>https://libraries.minecraft.net/org/lwjgl/lwjgl/lwjgl-platform/2.9.1-nightly-20131017/lwjgl-platform-2.9.1-nightly-20131017.pom]

Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https://libraries.minecraft.net/org/lwjgl/lwjgl/parent/2.9.1-SNAPSHOT/maven-metadata.xml]

Resource missing. [HTTP GET: http://files.minecraftforge.net/maven/org/lwjgl/lwjgl/parent/2.9.1-SNAPSHOT/maven-metadata.xml]

Resource missing. [HTTP GET: http://files.minecraftforge.net/maven/org/lwjgl/lwjgl/parent/2.9.1-SNAPSHOT/parent-2.9.1-SNAPSHOT.pom]

Resource missing. [HTTP HEAD: http://files.minecraftforge.net/maven/org/lwjgl/lwjgl/parent/2.9.1-SNAPSHOT/parent-2.9.1-SNAPSHOT.jar]

Resource missing. [HTTP GET: http://repo1.maven.org/maven2/org/lwjgl/lwjgl/parent/2.9.1-SNAPSHOT/maven-metadata.xml]

Resource missing. [HTTP GET: http://repo1.maven.org/maven2/org/lwjgl/lwjgl/parent/2.9.1-SNAPSHOT/parent-2.9.1-SNAPSHOT.pom]

Resource missing. [HTTP HEAD: http://repo1.maven.org/maven2/org/lwjgl/lwjgl/parent/2.9.1-SNAPSHOT/parent-2.9.1-SNAPSHOT.jar]

Resource missing. [HTTP HEAD: http://files.minecraftforge.net/maven/org/lwjgl/lwjgl/lwjgl-platform/2.9.1-nightly-20131017/lwjgl-platform-2.9.1-nightly-20131017.pom]

Resource missing. [HTTP HEAD: http://files.minecraftforge.net/maven/org/lwjgl/lwjgl/lwjgl-platform/2.9.1-nightly-20131017/lwjgl-platform-2.9.1-nightly-20131017-natives-osx.jar]

Resource missing. [HTTP HEAD: http://repo1.maven.org/maven2/org/lwjgl/lwjgl/lwjgl-platform/2.9.1-nightly-20131017/lwjgl-platform-2.9.1-nightly-20131017.pom]

Resource missing. [HTTP HEAD: http://repo1.maven.org/maven2/org/lwjgl/lwjgl/lwjgl-platform/2.9.1-nightly-20131017/lwjgl-platform-2.9.1-nightly-20131017-natives-osx.jar]

:extractUserDev FAILED

:extractUserDev (Thread[main,5,main]) completed. Took 3.071 secs.

 

FAILURE: Build failed with an exception.

 

* What went wrong:

Execution failed for task ':extractUserDev'.

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

  > Could not resolve org.lwjgl.lwjgl:lwjgl-platform:2.9.1-nightly-20131017.

    Required by:

        com.yourname.modid:forge-1.7.2-10.12.0.982-src:1.0

      > Could not parse POM https://libraries.minecraft.net/org/lwjgl/lwjgl/lwjgl-platform/2.9.1-nightly-20131017/lwjgl-platform-2.9.1-nightly-20131017.pom

        > Could not resolve org.lwjgl.lwjgl:parent:2.9.1-SNAPSHOT.

            > Unable to load Maven meta-data from https://libraries.minecraft.net/org/lwjgl/lwjgl/parent/2.9.1-SNAPSHOT/maven-metadata.xml.

              > Could not GET 'https://libraries.minecraft.net/org/lwjgl/lwjgl/parent/2.9.1-SNAPSHOT/maven-metadata.xml'. Received status code 403 from server: Forbidden

 

* Try:

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

 

BUILD FAILED

 

Total time: 10.337 secs

Stopped 0 compiler daemon(s).

 

The tutorial did say this was untested on OSX. Any advice for how to proceed?

Link to comment
Share on other sites

Attempted to import forge-1.7.2-10.12.0.982-src using the gradle eclipse plugin as well, and got exactly the same problem. The plugin popped up a dialog with the same error message:

 

Could not GET 'https://libraries.minecraft.net/org/lwjgl/lwjgl/parent/2.9.1-SNAPSHOT/maven-metadata.xml'. Received status code 403 from server: Forbidden

Could not execute build using Gradle distribution 'http://services.gradle.org/distributions/gradle-1.8-bin.zip'.

 

Link to comment
Share on other sites

I too have been having some problems with Gradle for OS X, although not in the way above. For some reason, gradlew seems it can't find the task

setupDecompWorkspace

, and tells me to try

gradlew tasks

where it too does not show up. Not sure if I'm missing something obvious or not, or if it actually isn't working.

 

:/

 

Log:

 

 

Last login: Thu Jan  2 15:13:54 on console
Luiss-iMac:~ Luis$ /Volumes/LUIS/Development/MCP/gradlew setupDecompWorkspace

FAILURE: Could not determine which tasks to execute.

* What went wrong:
Task 'setupDecompWorkspace' not found in root project 'Luis'.

* Try:
Run gradlew tasks to get a list of available tasks.

BUILD FAILED

Total time: 3.328 secs
Luiss-iMac:~ Luis$ /Volumes/LUIS/Development/MCP/gradlew tasks
:tasks

------------------------------------------------------------
All tasks runnable from root project
------------------------------------------------------------

Build Setup tasks
-----------------
setupBuild - Initializes a new Gradle build. [incubating]
wrapper - Generates Gradle wrapper files. [incubating]

Help tasks
----------
dependencies - Displays all dependencies declared in root project 'Luis'.
dependencyInsight - Displays the insight into a specific dependency in root project 'Luis'.
help - Displays a help message
projects - Displays the sub-projects of root project 'Luis'.
properties - Displays the properties of root project 'Luis'.
tasks - Displays the tasks runnable from root project 'Luis'.

To see all tasks and more detail, run with --all.

BUILD SUCCESSFUL

Total time: 1.933 secs
Luiss-iMac:~ Luis$ /Volumes/LUIS/Development/MCP/gradlew setupDevWorkspace

FAILURE: Could not determine which tasks to execute.

* What went wrong:
Task 'setupDevWorkspace' not found in root project 'Luis'.

* Try:
Run gradlew tasks to get a list of available tasks.

BUILD FAILED

Total time: 1.733 secs
Luiss-iMac:~ Luis$

 

 

 

 

 


 

 

 

EDIT: I figured it out, it was a derp. I ran

cd /Volumes/LUIS/Development/MCP

then dragged the gradlew file into the terminal, and it worked. Just a little heads-up to anyone having the same problem, don't forget to direct the terminal to your folder first!

Link to comment
Share on other sites

I had the same problem and was able to get around it by modifying the build/unpacked/dev.json to use 2.9.1 instead of 2.9.1-nightly... for the lwjgl libraries.

 

I then encountered another problem that cropped up with MCP earlier this year: we need more heap space than the default gradle script allows. I specified 1024m and was able to build to completion.

 

Hope that helps.

Link to comment
Share on other sites

Thanks @mabrowning, I was able to kick it by editing the build/unpacked/dev.json file, changing "2.9.1-nightly-20131017" to "2.9.1". Strangely, after the build succeeded, the file reverted to those values, but I think the lwjgl libraries were downloaded from somewhere else.

 

Is there a cleaner way to fix this for OSX?

 

Many thanks.

Link to comment
Share on other sites

The issue is on the Mojang servers' end, not much we can do about it, the launcher is having the same issue so they should be addressing it, and once they do we will update on our end.

This is why we cache things if you get the files once you wont need to download them ever again. So kep trying

 

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.