Skip to content

Instantly share code, notes, and snippets.

@RX14
Last active August 29, 2015 14:05
Show Gist options
  • Save RX14/768c0a30df9ecc245831 to your computer and use it in GitHub Desktop.
Save RX14/768c0a30df9ecc245831 to your computer and use it in GitHub Desktop.
Baubles Gradle Error
### Running in a docker container to make sure of a clean environment ###
rx14@RX14-XUB:~$ docker run -it rx14/baubles /bin/bash
root@b31549a8d6d5:/# git clone https://github.com/Azanor/Baubles.git /baubles
Cloning into '/baubles'...
remote: Counting objects: 865, done.
remote: Compressing objects: 100% (24/24), done.
remote: Total 865 (delta 6), reused 0 (delta 0)
Receiving objects: 100% (865/865), 3.55 MiB | 46.00 KiB/s, done.
Resolving deltas: 100% (359/359), done.
Checking connectivity... done.
root@b31549a8d6d5:/# cd baubles/
root@b31549a8d6d5:/baubles# ls
LICENSE README.md build.gradle gradle gradlew gradlew.bat rebuild.bat src
root@b31549a8d6d5:/baubles# gradle build
Download http://files.minecraftforge.net/maven/net/minecraftforge/gradle/ForgeGradle/1.2-SNAPSHOT/ForgeGradle-1.2-20140826.020642-160.pom
<snip />
Download http://repo1.maven.org/maven2/org/eclipse/core/runtime/3.10.0-v20140318-2214/runtime-3.10.0-v20140318-2214.jar
The assetDir is deprecated! Use runDir instead! runDir set to eclipse/assets/..
****************************
Powered By MCP:
http://mcp.ocean-labs.de/
Searge, ProfMobius, Fesh0r,
R4wk, ZeuX, IngisKahn
MCP Data version : unknown
****************************
:downloadClient
:downloadServer
:extractUserDev
Download http://files.minecraftforge.net/maven/net/minecraftforge/forge/1.7.10-10.13.0.1177/forge-1.7.10-10.13.0.1177-userdev.jar
:mergeJars
Adding cpw/mods/fml/relauncher/SideOnly.class
Adding cpw/mods/fml/relauncher/Side.class
:applyBinPatches
:downloadMcpTools
:genSrgs
:deobfBinJar
Applying SpecialSource...
INFO: merging AccessMap net/minecraft/item/ItemBlock/field_150939_a from AccessChange(clear=0, set=0, vis=1) with AccessChange(clear=0, set=0, vis=1)
Applying Exceptor...
Stripping synthetics...
:compileApiJava UP-TO-DATE
:processApiResources UP-TO-DATE
:apiClasses UP-TO-DATE
:sourceMainJava
:compileJava
Download https://libraries.minecraft.net/net/minecraft/launchwrapper/1.9/launchwrapper-1.9.pom
<snip />
Download http://repo1.maven.org/maven2/org/lwjgl/lwjgl/lwjgl-platform/2.9.1/lwjgl-platform-2.9.1-natives-osx.jar
warning: [options] bootstrap class path not set in conjunction with -source 1.6
/baubles/build/sources/java/baubles/common/network/PacketSyncBauble.java:37: error: exception IOException is never thrown in body of corresponding try statement
try { pb.writeItemStackToBuffer(bauble); } catch (IOException e) {}
^
/baubles/build/sources/java/baubles/common/network/PacketSyncBauble.java:46: error: exception IOException is never thrown in body of corresponding try statement
try { bauble = pb.readItemStackFromBuffer(); } catch (IOException e) {}
^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
1 warning
:compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.
* 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: 12 mins 29.019 secs
### Testing to see if it is a first-time-build issue ###
root@b31549a8d6d5:/baubles# gradle build
The assetDir is deprecated! Use runDir instead! runDir set to eclipse/assets/..
****************************
Powered By MCP:
http://mcp.ocean-labs.de/
Searge, ProfMobius, Fesh0r,
R4wk, ZeuX, IngisKahn
MCP Data version : unknown
****************************
:downloadClient SKIPPED
:downloadServer SKIPPED
:extractUserDev UP-TO-DATE
:mergeJars SKIPPED
:applyBinPatches SKIPPED
:downloadMcpTools UP-TO-DATE
:genSrgs SKIPPED
:deobfBinJar SKIPPED
:compileApiJava UP-TO-DATE
:processApiResources UP-TO-DATE
:apiClasses UP-TO-DATE
:sourceMainJava UP-TO-DATE
:compileJava
warning: [options] bootstrap class path not set in conjunction with -source 1.6
/baubles/build/sources/java/baubles/common/network/PacketSyncBauble.java:37: error: exception IOException is never thrown in body of corresponding try statement
try { pb.writeItemStackToBuffer(bauble); } catch (IOException e) {}
^
/baubles/build/sources/java/baubles/common/network/PacketSyncBauble.java:46: error: exception IOException is never thrown in body of corresponding try statement
try { bauble = pb.readItemStackFromBuffer(); } catch (IOException e) {}
^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
1 warning
:compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.
* 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: 9.25 secs
### gradle build should have done all of this allready but... ###
root@b31549a8d6d5:/baubles# gradle setupCIWorkspace
The assetDir is deprecated! Use runDir instead! runDir set to eclipse/assets/..
****************************
Powered By MCP:
http://mcp.ocean-labs.de/
Searge, ProfMobius, Fesh0r,
R4wk, ZeuX, IngisKahn
MCP Data version : unknown
****************************
:downloadClient SKIPPED
:downloadServer SKIPPED
:extractUserDev UP-TO-DATE
:mergeJars SKIPPED
:applyBinPatches SKIPPED
:downloadMcpTools UP-TO-DATE
:genSrgs SKIPPED
:deobfBinJar SKIPPED
:setupCIWorkspace UP-TO-DATE
BUILD SUCCESSFUL
Total time: 6.922 secs
### Try again! ###
root@b31549a8d6d5:/baubles# gradle build
The assetDir is deprecated! Use runDir instead! runDir set to eclipse/assets/..
****************************
Powered By MCP:
http://mcp.ocean-labs.de/
Searge, ProfMobius, Fesh0r,
R4wk, ZeuX, IngisKahn
MCP Data version : unknown
****************************
:downloadClient SKIPPED
:downloadServer SKIPPED
:extractUserDev UP-TO-DATE
:mergeJars SKIPPED
:applyBinPatches SKIPPED
:downloadMcpTools UP-TO-DATE
:genSrgs SKIPPED
:deobfBinJar SKIPPED
:compileApiJava UP-TO-DATE
:processApiResources UP-TO-DATE
:apiClasses UP-TO-DATE
:sourceMainJava UP-TO-DATE
:compileJava
warning: [options] bootstrap class path not set in conjunction with -source 1.6
/baubles/build/sources/java/baubles/common/network/PacketSyncBauble.java:37: error: exception IOException is never thrown in body of corresponding try statement
try { pb.writeItemStackToBuffer(bauble); } catch (IOException e) {}
^
/baubles/build/sources/java/baubles/common/network/PacketSyncBauble.java:46: error: exception IOException is never thrown in body of corresponding try statement
try { bauble = pb.readItemStackFromBuffer(); } catch (IOException e) {}
^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
1 warning
:compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.
* 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: 8.34 secs
### Maybe this will work ###
root@b31549a8d6d5:/baubles# gradle setupDevWorkspace
The assetDir is deprecated! Use runDir instead! runDir set to eclipse/assets/..
****************************
Powered By MCP:
http://mcp.ocean-labs.de/
Searge, ProfMobius, Fesh0r,
R4wk, ZeuX, IngisKahn
MCP Data version : unknown
****************************
:downloadClient SKIPPED
:downloadServer SKIPPED
:extractUserDev UP-TO-DATE
:mergeJars SKIPPED
:applyBinPatches SKIPPED
:downloadMcpTools UP-TO-DATE
:genSrgs SKIPPED
:deobfBinJar SKIPPED
:extractNatives
:getAssetsIndex
:getAssets
Current status: 3/686 0%
<snip />
Current status: 686/686 100%
:makeStart
warning: [options] bootstrap class path not set in conjunction with -source 1.6
1 warning
:setupDevWorkspace
BUILD SUCCESSFUL
Total time: 2 mins 38.483 secs
### Maybe this time... ###
root@b31549a8d6d5:/baubles# gradle build
The assetDir is deprecated! Use runDir instead! runDir set to eclipse/assets/..
****************************
Powered By MCP:
http://mcp.ocean-labs.de/
Searge, ProfMobius, Fesh0r,
R4wk, ZeuX, IngisKahn
MCP Data version : unknown
****************************
:downloadClient SKIPPED
:downloadServer SKIPPED
:extractUserDev UP-TO-DATE
:mergeJars SKIPPED
:applyBinPatches SKIPPED
:downloadMcpTools UP-TO-DATE
:genSrgs SKIPPED
:deobfBinJar SKIPPED
:compileApiJava UP-TO-DATE
:processApiResources UP-TO-DATE
:apiClasses UP-TO-DATE
:sourceMainJava UP-TO-DATE
:compileJava
warning: [options] bootstrap class path not set in conjunction with -source 1.6
/baubles/build/sources/java/baubles/common/network/PacketSyncBauble.java:37: error: exception IOException is never thrown in body of corresponding try statement
try { pb.writeItemStackToBuffer(bauble); } catch (IOException e) {}
^
/baubles/build/sources/java/baubles/common/network/PacketSyncBauble.java:46: error: exception IOException is never thrown in body of corresponding try statement
try { bauble = pb.readItemStackFromBuffer(); } catch (IOException e) {}
^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
1 warning
:compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.
* 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: 9.086 secs
### This one I know works ###
root@b31549a8d6d5:/baubles# gradle setupDecompWorkspace
The assetDir is deprecated! Use runDir instead! runDir set to eclipse/assets/..
****************************
Powered By MCP:
http://mcp.ocean-labs.de/
Searge, ProfMobius, Fesh0r,
R4wk, ZeuX, IngisKahn
MCP Data version : unknown
****************************
:extractUserDev UP-TO-DATE
:genSrgs SKIPPED
:extractNatives UP-TO-DATE
:getAssetsIndex
:getAssets
:makeStart SKIPPED
:downloadMcpTools UP-TO-DATE
:downloadClient SKIPPED
:downloadServer SKIPPED
:mergeJars SKIPPED
:deobfuscateJar
Applying SpecialSource...
INFO: merging AccessMap net/minecraft/item/ItemBlock/field_150939_a from AccessChange(clear=0, set=0, vis=1) with AccessChange(clear=0, set=0, vis=1)
Applying Exceptor...
> :decompile
:processSources
Injecting fml files
Applying fml patches
Applying forge patches
:remapJar
:extractMinecraftSrc
:recompMinecraft
warning: [options] bootstrap class path not set in conjunction with -source 1.6
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
:repackMinecraft
:setupDecompWorkspace
BUILD SUCCESSFUL
Total time: 1 mins 42.155 secs
### Here we go ###
root@b31549a8d6d5:/baubles# gradle build
The assetDir is deprecated! Use runDir instead! runDir set to eclipse/assets/..
****************************
Powered By MCP:
http://mcp.ocean-labs.de/
Searge, ProfMobius, Fesh0r,
R4wk, ZeuX, IngisKahn
MCP Data version : unknown
****************************
:compileApiJava UP-TO-DATE
:processApiResources UP-TO-DATE
:apiClasses UP-TO-DATE
:sourceMainJava UP-TO-DATE
:compileJava
warning: [options] bootstrap class path not set in conjunction with -source 1.6
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
:processResources
:classes
:deobfJar
:apiZip
:jar
:extractUserDev UP-TO-DATE
:extractNatives UP-TO-DATE
:getAssetsIndex
:getAssets
:makeStart SKIPPED
:compileTestJava UP-TO-DATE
:processTestResources UP-TO-DATE
:testClasses UP-TO-DATE
:test UP-TO-DATE
:genSrgs SKIPPED
:reobf
:assemble
:check UP-TO-DATE
:build
BUILD SUCCESSFUL
Total time: 12.1 secs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment