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

[1.8][SOLVED]Compiling mod with dependencies


decebaldecebal
 Share

Recommended Posts

Hello,

I recently finished updating my mod to 1.8 but now I do not know how to compile it.I get weird errors from the command "gradlew build".

 

F:\Java Coding\Forge\Forge 1.8>gradlew build
****************************
Powered By MCP:
http://mcp.ocean-labs.de/
Searge, ProfMobius, Fesh0r,
R4wk, ZeuX, IngisKahn, bspkrs
MCP Data version : snapshot_20141130
****************************
: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
F:\Java Coding\Forge\Forge 1.8\build\sources\java\com\entirecraft\general\blocks
\Machines\AdvancedCoalRefiner.java:125: error: inconvertible types
                if(!((boolean)state.getValue(KEEPINV)))
                                            ^
  required: boolean
  found:    Comparable
F:\Java Coding\Forge\Forge 1.8\build\sources\java\com\entirecraft\general\blocks
\Machines\AdvancedCoalRefiner.java:180: error: inconvertible types
                if(((boolean) state.getValue(FORMED)))
                                            ^
  required: boolean
  found:    Comparable
F:\Java Coding\Forge\Forge 1.8\build\sources\java\com\entirecraft\general\blocks
\Machines\AdvancedCoalRefiner.java:182: error: inconvertible types
                if(((boolean) state.getValue(KEEPINV)))
                                            ^
  required: boolean
  found:    Comparable
F:\Java Coding\Forge\Forge 1.8\build\sources\java\com\entirecraft\general\blocks
\Machines\AdvancedOreRefiner.java:69: error: inconvertible types
                if(!world.isRemote && ((boolean)state.getValue(CORE)))
                                                              ^
  required: boolean
  found:    Comparable
F:\Java Coding\Forge\Forge 1.8\build\sources\java\com\entirecraft\general\blocks
\Machines\AdvancedOreRefiner.java:159: error: inconvertible types
                                if(!((boolean) state.getValue(CORE)))
                                                             ^
  required: boolean
  found:    Comparable
F:\Java Coding\Forge\Forge 1.8\build\sources\java\com\entirecraft\general\blocks
\Machines\AdvancedOreRefiner.java:188: error: inconvertible types
                if(state.getBlock() == GAMod.advancedorerefiner && !((boolean) s
tate.getValue(CORE)))

             ^
  required: boolean
  found:    Comparable
F:\Java Coding\Forge\Forge 1.8\build\sources\java\com\entirecraft\general\blocks
\Machines\AdvancedOreRefiner.java:230: error: inconvertible types
                if(((boolean) state.getValue(FORMED)))
                                            ^
  required: boolean
  found:    Comparable
F:\Java Coding\Forge\Forge 1.8\build\sources\java\com\entirecraft\general\blocks
\Machines\AdvancedOreRefiner.java:232: error: inconvertible types
                if(((boolean) state.getValue(CORE)))
                                            ^
  required: boolean
  found:    Comparable
F:\Java Coding\Forge\Forge 1.8\build\sources\java\com\entirecraft\general\blocks
\Machines\AtomExtractor.java:102: error: inconvertible types
                if(((boolean) state.getValue(ACTIVE)))
                                            ^
  required: boolean
  found:    Comparable
F:\Java Coding\Forge\Forge 1.8\build\sources\java\com\entirecraft\general\blocks
\Machines\AtomExtractor.java:200: error: inconvertible types
                if (!((boolean)state.getValue(KEEPINV)))
                                             ^
  required: boolean
  found:    Comparable
F:\Java Coding\Forge\Forge 1.8\build\sources\java\com\entirecraft\general\blocks
\Machines\AtomExtractor.java:244: error: inconvertible types
                if (((boolean)state.getValue(KEEPINV)))
                                            ^
  required: boolean
  found:    Comparable
F:\Java Coding\Forge\Forge 1.8\build\sources\java\com\entirecraft\general\blocks
\Machines\AtomExtractor.java:246: error: inconvertible types
                if (((boolean)state.getValue(ACTIVE)))
                                            ^
  required: boolean
  found:    Comparable
F:\Java Coding\Forge\Forge 1.8\build\sources\java\com\entirecraft\general\blocks
\Machines\CoalRefiner.java:104: error: inconvertible types
                if (((boolean)state.getValue(ACTIVE)))
                                            ^
  required: boolean
  found:    Comparable
F:\Java Coding\Forge\Forge 1.8\build\sources\java\com\entirecraft\general\blocks
\Machines\CoalRefiner.java:190: error: inconvertible types
                if (!((boolean)state.getValue(KEEPINV)))
                                             ^
  required: boolean
  found:    Comparable
F:\Java Coding\Forge\Forge 1.8\build\sources\java\com\entirecraft\general\blocks
\Machines\CoalRefiner.java:233: error: inconvertible types
                if (((boolean)state.getValue(KEEPINV)))
                                            ^
  required: boolean
  found:    Comparable
F:\Java Coding\Forge\Forge 1.8\build\sources\java\com\entirecraft\general\blocks
\Machines\CoalRefiner.java:235: error: inconvertible types
                if (((boolean)state.getValue(ACTIVE)))
                                            ^
  required: boolean
  found:    Comparable
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
16 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.829 secs

F:\Java Coding\Forge\Forge 1.8>

 

Also this is my build.gradle file.I have a plugin for NEI and I put as a dependency all the jars that NEI uses, but they are the dev version and I am not sure if I need the source as a dependency or not.

 

buildscript {
    repositories {
        mavenCentral()
        maven {
            name = "forge"
            url = "http://files.minecraftforge.net/maven"
        }
        maven {
            name = "sonatype"
            url = "https://oss.sonatype.org/content/repositories/snapshots/"
        }
    }
    dependencies {
        classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
    }
}

apply plugin: 'forge'

version = "2.0"
group= "com.entirecraft" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "geoactivity"

minecraft {
    version = "1.8-11.14.1.1334"
    runDir = "eclipse"
    
    // the mappings can be changed at any time, and must be in the following format.
    // snapshot_YYYYMMDD   snapshot are built nightly.
    // stable_#            stables are built at the discretion of the MCP team.
    // Use non-default mappings at your own risk. they may not allways work.
    // simply re-run your setup task after changing the mappings to update your workspace.
    mappings = "snapshot_20141130"
}

dependencies {
compile files ( // comma-separated list of all jars goes here:
        "libs/CodeChickenCore-1.8-1.0.5.34-dev.jar",
        "libs/CodeChickenLib-1.8-1.1.2.133-dev.jar",
        "libs/NotEnoughItems-1.8-1.0.5.82-dev.jar"
    )

    // you may put jars on which you depend on in ./libs
    // or you may define them like so..
    //compile "some.group:artifact:version:classifier"
    //compile "some.group:artifact:version"
      
    // real examples
    //compile 'com.mod-buildcraft:buildcraft:6.0.8:dev'  // adds buildcraft to the dev env
    //compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env

    // for more info...
    // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
    // http://www.gradle.org/docs/current/userguide/dependency_management.html

}

processResources
{
    // this will ensure that this task is redone when the versions change.
    inputs.property "version", project.version
    inputs.property "mcversion", project.minecraft.version

    // replace stuff in mcmod.info, nothing else
    from(sourceSets.main.resources.srcDirs) {
        include 'mcmod.info'
                
        // replace version and mcversion
        expand 'version':project.version, 'mcversion':project.minecraft.version
    }
        
    // copy everything else, thats not the mcmod.info
    from(sourceSets.main.resources.srcDirs) {
        exclude 'mcmod.info'
    }
}

 

Can somebody please tell me what is wrong and how can I export my mod properly?

Thank you.

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • thank you very much, the problem was in the path to the model.  
    • The version you are using is no longer supported on this forum. Please update to a modern version of Minecraft to receive support. Currently supported versions are 1.18.1/1.18.2 (Latest) and 1.16.5 (LTS).
    • The version of WorldEdit that you have is for 1.18.1 and not compatible with 1.18.2. Use the 1.18.2 version.
    • Having probems with a server i have at home it crashes when loading up   ---- Minecraft Crash Report ---- // Daisy, daisy... Time: 25/05/2022, 14:03 Description: Exception in server tick loop java.lang.NoSuchMethodError: 'net.minecraft.core.RegistryAccess net.minecraft.server.MinecraftServer.m_129911_()'     at com.sk89q.worldedit.forge.ForgeWorldEdit.setupRegistries(ForgeWorldEdit.java:197) ~[worldedit-mod-7.2.8.jar%2355!/:?] {re:classloading}     at com.sk89q.worldedit.forge.ForgeWorldEdit.serverStarted(ForgeWorldEdit.java:256) ~[worldedit-mod-7.2.8.jar%2355!/:?] {re:classloading}     at net.minecraftforge.eventbus.ASMEventHandler_9_ForgeWorldEdit_serverStarted_ServerStartedEvent.invoke(.dynamic) ~[?:?] {}     at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:85) ~[eventbus-5.0.3.jar%232!/:?] {}     at net.minecraftforge.eventbus.EventBus.post(EventBus.java:302) ~[eventbus-5.0.3.jar%232!/:?] {}     at net.minecraftforge.eventbus.EventBus.post(EventBus.java:283) ~[eventbus-5.0.3.jar%232!/:?] {}     at net.minecraftforge.server.ServerLifecycleHooks.handleServerStarted(ServerLifecycleHooks.java:99) ~[forge-1.18.2-40.1.25-universal.jar%2361!/:?] {re:classloading}     at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:662) ~[server-1.18.2-20220404.173914-srg.jar%2357!/:?] {re:classloading,pl:accesstransformer:B}     at net.minecraft.server.MinecraftServer.m_177918_(MinecraftServer.java:261) ~[server-1.18.2-20220404.173914-srg.jar%2357!/:?] {re:classloading,pl:accesstransformer:B}     at java.lang.Thread.run(Thread.java:833) [?:?] {} A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details:     Minecraft Version: 1.18.2     Minecraft Version ID: 1.18.2     Operating System: Windows 11 (amd64) version 10.0     Java Version: 17.0.2, Oracle Corporation     Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode, sharing), Oracle Corporation     Memory: 1172062448 bytes (1117 MiB) / 2105540608 bytes (2008 MiB) up to 2105540608 bytes (2008 MiB)     CPUs: 4     Processor Vendor: GenuineIntel     Processor Name: Intel(R) Core(TM) i3-8100T CPU @ 3.10GHz     Identifier: Intel64 Family 6 Model 158 Stepping 11     Microarchitecture: Coffee Lake     Frequency (GHz): 3.10     Number of physical packages: 1     Number of physical CPUs: 4     Number of logical CPUs: 4     Graphics card #0 name: Intel(R) UHD Graphics 630     Graphics card #0 vendor: Intel Corporation (0x8086)     Graphics card #0 VRAM (MB): 1024.00     Graphics card #0 deviceId: 0x3e91     Graphics card #0 versionInfo: DriverVersion=26.20.100.7757     Memory slot #0 capacity (MB): 8192.00     Memory slot #0 clockSpeed (GHz): 2.67     Memory slot #0 type: DDR4     Virtual memory max (MB): 9310.78     Virtual memory used (MB): 5713.56     Swap memory total (MB): 1280.00     Swap memory used (MB): 10.88     JVM Flags: 0 total;     Server Running: true     Player Count: 0 / 20; []     Data Packs: vanilla, mod:charginggadgets (incompatible), mod:supermartijn642configlib (incompatible), mod:worldedit (incompatible), mod:buildinggadgets (incompatible), mod:buildhelper (incompatible), mod:mcjtylib (incompatible), mod:supermartijn642corelib (incompatible), mod:chunkloaders (incompatible), mod:mininggadgets (incompatible), mod:forge (incompatible), mod:rftoolsbase (incompatible), mod:rftoolsbuilder (incompatible), mod:refinedstorage, mod:journeymap (incompatible), mod:cyclic, mod:jamd (incompatible), mod:jei (incompatible), mod:patchouli (incompatible), mod:laserio     World Generation: Experimental     Is Modded: Definitely; Server brand changed to 'forge'     Type: Dedicated Server (map_server.txt)     ModLauncher: 9.1.3+9.1.3+main.9b69c82a     ModLauncher launch target: forgeserver     ModLauncher naming: srg     ModLauncher services:          mixin PLUGINSERVICE          eventbus PLUGINSERVICE          slf4jfixer PLUGINSERVICE          object_holder_definalize PLUGINSERVICE          runtime_enum_extender PLUGINSERVICE          capability_token_subclass PLUGINSERVICE          accesstransformer PLUGINSERVICE          runtimedistcleaner PLUGINSERVICE          mixin TRANSFORMATIONSERVICE          fml TRANSFORMATIONSERVICE     FML Language Providers:         minecraft@1.0         javafml@null     Mod List:         server-1.18.2-20220404.173914-srg.jar             |Minecraft                     |minecraft                     |1.18.2              |DONE      |Manifest: NOSIGNATURE         charginggadgets-1.5.0.jar                         |Charging Gadgets              |charginggadgets               |1.5.0               |DONE      |Manifest: NOSIGNATURE         supermartijn642configlib-1.0.9-mc1.18.jar         |SuperMartijn642's Config Lib  |supermartijn642configlib      |1.0.9               |DONE      |Manifest: NOSIGNATURE         worldedit-mod-7.2.8.jar                           |WorldEdit                     |worldedit                     |7.2.8+6008-1246d61  |DONE      |Manifest: NOSIGNATURE         buildinggadgets-3.13.0-build.5+mc1.18.2.jar       |Building Gadgets              |buildinggadgets               |3.13.0-build.5+mc1.1|DONE      |Manifest: NOSIGNATURE         torojimaBuildHelper-3.5.0.0.jar                   |Torojima's Buildhelper        |buildhelper                   |3.5.0.0             |DONE      |Manifest: NOSIGNATURE         mcjtylib-1.18-6.0.13.jar                          |McJtyLib                      |mcjtylib                      |1.18-6.0.13         |DONE      |Manifest: NOSIGNATURE         jei-1.18.1-9.2.1.69.jar                           |Just Enough Items             |jei                           |9.2.1.69            |DONE      |Manifest: NOSIGNATURE         supermartijn642corelib-1.0.16-mc1.18.jar          |SuperMartijn642's Core Lib    |supermartijn642corelib        |1.0.16              |DONE      |Manifest: NOSIGNATURE         chunkloaders-1.1.8-mc1.18.jar                     |Chunk Loaders                 |chunkloaders                  |1.1.8               |DONE      |Manifest: NOSIGNATURE         mininggadgets-1.11.0.jar                          |Mining Gadgets                |mininggadgets                 |1.11.0              |DONE      |Manifest: NOSIGNATURE         forge-1.18.2-40.1.25-universal.jar                |Forge                         |forge                         |40.1.25             |DONE      |Manifest: 84:ce:76:e8:45:35:e4:0e:63:86:df:47:59:80:0f:67:6c:c1:5f:6e:5f:4d:b3:54:47:1a:9f:7f:ed:5e:f2:90         rftoolsbase-1.18-3.0.7.jar                        |RFToolsBase                   |rftoolsbase                   |1.18-3.0.7          |DONE      |Manifest: NOSIGNATURE         rftoolsbuilder-1.18-4.0.10.jar                    |RFToolsBuilder                |rftoolsbuilder                |1.18-4.0.10         |DONE      |Manifest: NOSIGNATURE         Patchouli-1.18.2-67.jar                           |Patchouli                     |patchouli                     |1.18.2-67           |DONE      |Manifest: NOSIGNATURE         refinedstorage-1.10.2.jar                         |Refined Storage               |refinedstorage                |1.10.2              |DONE      |Manifest: NOSIGNATURE         laserio-1.0.1.jar                                 |LaserIO                       |laserio                       |1.0.1               |DONE      |Manifest: NOSIGNATURE         journeymap-1.18-5.8.0alpha4.jar                   |Journeymap                    |journeymap                    |5.8.0alpha4         |DONE      |Manifest: NOSIGNATURE         Cyclic-1.18.2-1.7.0.jar                           |Cyclic                        |cyclic                        |1.18.2-1.7.0        |DONE      |Manifest: 1f:47:ac:b1:61:82:96:b8:47:19:16:d2:61:81:11:60:3a:06:4b:61:31:56:7d:44:31:1e:0c:6f:22:5b:4c:ed         JAMD-1.7.0-build.24+mc1.18.2.jar                  |Just Another Mining Dimension |jamd                          |1.7.0-build.24+mc1.1|DONE      |Manifest: NOSIGNATURE     Crash Report UUID: a4b30830-b80e-4601-9aec-8e6451729eed     FML: 40.1     Forge: net.minecraftforge:40.1.25
    • This means the version of Configured is not for 1.18, you need a version of the Mod for 1.18.2
  • Topics

×
×
  • Create New...

Important Information

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