MalisisCore is a framework dedicated to simplifying many processes required during mod development. It is licensed under the MIT License.
To clone MalisisCore, simply run git clone git@github.com:Ordinastie/MalisisCore.git
Note: If you do not have Gradle installed then use ./gradlew for Unix systems or Git Bash and gradlew.bat for Windows systems in place of any 'gradle' command.
For Eclipse
gradle setupDecompWorkspace --refresh-dependencies
For IntelliJ
gradle setupDecompWorkspace --refresh-dependencies
Note: The following is aimed to help you setup run configurations for Eclipse and IntelliJ, if you do not want to be able to run MalisisCore directly from your IDE then you can skip this.
For Eclipse
MalisisCore (Client)
and apply the information for Client below.MalisisCore (Server)
and apply the information for Server below. For IntelliJ
MalisisCore (Client)
and apply the information for Client below. MalisisCore (Server)
and apply the information for Server below. Client
Property | Value |
---|---|
Main class | GradleStart |
VM options | -Dfml.coreMods.load=net.malisis.core.asm.MalisisCorePlugin |
Working directory | ./run (Included in project) |
Module classpath | MalisisCore (IntelliJ Only) |
Server
Property | Value |
---|---|
Main class | GradleStartServer |
VM options | -Dfml.coreMods.load=net.malisis.core.asm.MalisisCorePlugin |
Working directory | ./run (Included in project) |
Module classpath | MalisisCore (IntelliJ Only) |
Note: If you do not have Gradle installed then use ./gradlew for Unix systems or Git Bash and gradlew.bat for Windows systems in place of any 'gradle' command.
In order to build MalisisCore you simply need to run the gradle
command. You can find the compiled JAR files in ./build/libs
but in most cases you'll only need 'malisiscore-x.x.x-x.x.x.jar' for obfuscated environments and '-dev' for unobfuscated environments.
To use MalisisCore as a dependency in your project you must add the following to your build.gradle.
repositories {
maven {
name = 'sonatype-nexus'
url = 'https://oss.sonatype.org/content/repositories/public/'
}
}
dependencies {
compile 'net.malisis:malisiscore:1.7.10-0.11.1:dev'
}
Why do I get javac: source release 1.7 requires target release 1.7
in IntelliJ when running the client configuration?
Sometimes another project can mess with the settings in IntelliJ. Fixing this is relatively easy.
- Go to 'File > Settings'.
- Click the drop down for 'Compiler' on the left-hand side and select 'Java Compiler'.
- Select MalisisCore and set the 'Target bytecode version' as '1.7'.
- Click Apply and OK and try running it again.
Why do I get Zip file rt.jar failed to read properly
in IntelliJ?
This is the result of Forge attempting to classload the Java runtime JAR, overall it is not an error that will cause any harm to your development and should be ignored.
A dependency was added, but my IDE is missing it! How do I add it?
If a new dependency was added, you can just restart your IDE and the Gradle plugin for that IDE should pull in the new dependencies.
Help! Things are not working!
Some issues can be resolved by deleting the '.gradle' folder in your user directory and running through the setup steps again, or even running
gradle cleanCache
and running through the setup again. Otherwise if you are having trouble with something that the README does not cover, feel free to join our IRC channel and ask for assistance.