Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • ForgeGradle
  • gradle setupDecompWorkspace not working on OSX
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 0
libarclite

gradle setupDecompWorkspace not working on OSX

By libarclite, January 2, 2014 in ForgeGradle

  • Reply to this topic
  • Start new topic

Recommended Posts

libarclite    2

libarclite

libarclite    2

  • Tree Puncher
  • libarclite
  • Members
  • 2
  • 42 posts
Posted January 2, 2014

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?

  • Quote

Share this post


Link to post
Share on other sites

libarclite    2

libarclite

libarclite    2

  • Tree Puncher
  • libarclite
  • Members
  • 2
  • 42 posts
Posted January 2, 2014

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'.

 

  • Quote

Share this post


Link to post
Share on other sites

luisc99    12

luisc99

luisc99    12

  • Creeper Killer
  • luisc99
  • Forge Modder
  • 12
  • 107 posts
Posted January 2, 2014

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!

  • Quote

Share this post


Link to post
Share on other sites

mabrowning    2

mabrowning

mabrowning    2

  • Tree Puncher
  • mabrowning
  • Members
  • 2
  • 2 posts
Posted January 2, 2014

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.

  • Quote

Share this post


Link to post
Share on other sites

libarclite    2

libarclite

libarclite    2

  • Tree Puncher
  • libarclite
  • Members
  • 2
  • 42 posts
Posted January 2, 2014

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.

  • Quote

Share this post


Link to post
Share on other sites

LexManos    1620

LexManos

LexManos    1620

  • Reality Controller
  • LexManos
  • Forge Code God
  • 1620
  • 8954 posts
Posted January 2, 2014

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

 

  • Quote

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Patreon: http://www.patreon.com/lexmanos
Paypal: http://paypal.me/LexManos

BitCoin: 1Q8rWvUNMM2T1ZfDaFeeYQyVXtYoeT6tTn

Share this post


Link to post
Share on other sites

mabrowning    2

mabrowning

mabrowning    2

  • Tree Puncher
  • mabrowning
  • Members
  • 2
  • 2 posts
Posted January 2, 2014

Lex, is there an easy way to increase the default heap size when running on OSX? Perhaps just in the gradle wrapper? Admittedly, not a hard problem to solve, but you have to run it with --debug to see why it fails.

  • Quote

Share this post


Link to post
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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 0
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • Iron1601
      Right Way To Add Arbitrary Data To PlayerEntities

      By Iron1601 · Posted 24 minutes ago

      Thank you very much.
    • NullDev
      [Solved] Custom Slime Block not working with Pistons

      By NullDev · Posted 26 minutes ago

      Turns out it was a problem with IntelliJ. Not sure what, but I restarted it and everything is working fine now.
    • diesieben07
      Right Way To Add Arbitrary Data To PlayerEntities

      By diesieben07 · Posted 28 minutes ago

      Because they are originally intended to support "this object can do X"-scenarios. For example: "this tile entity has an inventory" (or in capability-speak: "this tile entity has the inventory capability"). For example, to get an object's inventory capability you call thing.getCapability(ITEM_HANDLER_CAPABILITY, null). This gives you a LazyOptional, which will either be present (thing has an inventory) or not (thing doesn't have an inventory). The facing can be used to convey additional info. For blocks it means the actual facing (a furnace exposes a different inventory on the top than on the bottom), for other things it could mean all kinds of things (entities use sides to give access to separate inventories for just armor or just the held item).   Additionally, you can also use AttachCapabilitiesEvent to attach capabilities to "foreign objects". What you attach here is not really a capability, but a capability provider ("something that can have capabilities") - the capabilities given by this provider will also be exposed by the "foreign object". This provider is special, in that it can also save data, which will be attached to the "foreign object". This whole mechanism allows you to: Write your own capability which stores the data you need. Write your own provider which manages serialization of that data and exposes the capability. Attach that provider to all players using AttachCapabilitiesEvent - players will now store your data.
    • cadbane86140
      Minecraft: Harry Potter Episode #2- Getting Sorted into our Houses!

      By cadbane86140 · Posted 28 minutes ago

      Hello There! Today is the day we get sorted into our Hogwarts Houses! But it is very different than it is in the movies, we actually have to answer a series of questions and then we will be put into the houses. But during our questions of course we have to meme during it which just makes up for some hilarious moments! I hope you all enjoy this video and if you did don't forget to like and sub for more!  
    • diesieben07
      [Solved] Custom Slime Block not working with Pistons

      By diesieben07 · Posted 37 minutes ago

      Cannot reproduce:
  • Topics

    • Iron1601
      4
      Right Way To Add Arbitrary Data To PlayerEntities

      By Iron1601
      Started 1 hour ago

    • NullDev
      8
      [Solved] Custom Slime Block not working with Pistons

      By NullDev
      Started 18 hours ago

    • cadbane86140
      0
      Minecraft: Harry Potter Episode #2- Getting Sorted into our Houses!

      By cadbane86140
      Started 28 minutes ago

    • KBomb
      23
      Mods aren't loading on Forge 1.16.5 server

      By KBomb
      Started Yesterday at 07:32 PM

    • Jeldrik
      8
      Starting GUI on key Input

      By Jeldrik
      Started 19 hours ago

  • Who's Online (See full list)

    • DaxMinecraft
    • Skyriis
    • rjakobs
    • pokmon987
    • ColumnDragon
    • rinlix2
    • spynery
    • lupicus
    • sonofgaming
    • Xrated_junior
    • diesieben07
    • NullDev
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • ForgeGradle
  • gradle setupDecompWorkspace not working on OSX
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community