![]() Inputs.property "version", project. this will ensure that this task is redone when the versions change. Īdd the following to your adle to use it, adjusting the version number as needed:Ĭlasspath ':ForgeGradle:1.2-SNAPSHOT'Ĭompile 'net.industrial-craft:industrialcraft-2:2.1.470-experimental:dev' It also needs to be copied to your eclipse working (run) directory's mods-Folder.Ī maven compatible repository for the api an dev jars is available at. You can get it from, the file name is "industrialcraft-x-x.x.xxx-experimental-dev.jar" (should be the second one). Verify that builds on developer machines (plugin will sidestep checks on CI) are running with expected. Add the IC2 dev jar as a library to the build path. You can obtain one from Eclipse Adoptium. Using a 32-bit JVM will result in some problems when running the below gradle tasks. Please consider using the daemon: will be stopped at the end of the build stopping after processing. If we use Jenkins BUILDNUMBER than that is completely different sequence than the Gradle build number plugin. The downside to our in-house Gradle build number plugin is that it uses a local file and thus builds by multiple developers do not sync build numbers. Minecraft and MinecraftForge both compile against Java 17 and as such should be used for development. /gradlew setupDecompWorkspace eclipse To honour the JVM settings for this build a new JVM will be forked. Jenkins has its own build number which we can access via env var BUILDNUMBER. If you want to you can create a separate project for IC2 or just add IC2 to Forge's project. Obtain a Java 17 Development Kit (JDK) and a 64-bit Java Virtual Machine (JVM). Start with a normal Forge workspace using the Forge src zip, extracting it, running gradle(w) setupDecomWorkspace and gradle(w) eclipse and importing it into Eclipse. Summary: There's no need to ship the API ever. Calls to missing classes should only crash when the call actually happens, unreachable calls, e.g. If you also don't call IC2 code without checking if IC2 is available first, the API isn't even required if IC2 is not installed. If you would like to contribute to the docs, read Contributing to the Docs. If IC2 is not always installed (optional) you can use FML's annotation to strip missing interfaces at load-time. This documentation is only for ForgeGradle, this is not a Java, Groovy, or Gradle tutorial. So when you compile your Mod do not zip/jar up the IC2 API itself, because then your old IC2 API can accidentally override the IC2 API of IC2 itself what causes crashes. If you make an IC2 Addon where IC2 is always installed, you do not need to ship this API inside your Mod, since it is already contained in IC2 itself. If you look for the License Stuff then go here SUPPORT.md Fix up logging and log4j configuration (4802), 6 years ago adle Create jenkins file for new jenkins. If you have a Question about the API or the Dev Environment, you can post it here. description A Gradle plugin for the creation of Minecraft mods and MinecraftForge plugins. This file can be placed in the mods folder of a Forge-enabled Minecraft setup or distributed. This is the Thread about the IC2 API and IC2 Addons. This will output a file in build/libs with the name archivesBaseName-version.jar, by default. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |