The following steps will ensure your project is cloned properly.
git clone git@github.com:AlmuraDev/Almura.git
cd Almura
cp scripts/pre-commit .git/hooks
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 IntelliJ
gradle generateDatabaseClasses
gradle setupDecompWorkspace --refresh-dependencies
Create separate module per source set
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 Almura 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 'almura-x.x-xxxx-rx.x.jar'.
Note 1: The following is aimed to help you setup run configurations for Eclipse and IntelliJ. If you do not want to be able to run Almura directly from your IDE then you can skip this.
Note 2: For more information regarding VM options or program arguments for Mixin, visit https://github.com/SpongePowered/Mixin/wiki/Mixin-Java-System-Properties
For Eclipse
Almura (Client)
and apply the information for Client below.Almura (Server)
and apply the information for Server below.For IntelliJ
Almura (Client)
and apply the information for Client below. Almura (Server)
and apply the information for Server below.Client
Property | Value |
---|---|
Main class | GradleStart |
VM options | -Xincgc -Xms1024M -Xmx2048M -Dfml.coreMods.load=com.almuradev.almura.AlmuraLoadingPlugin, |
Program arguments | --noCoreSearch |
Working directory | ./run (Included in project) |
Module classpath | Almura (IntelliJ Only) |
Server
Property | Value |
---|---|
Main class | GradleStartServer |
VM options | -Xincgc -Xms1024M -Xmx2048M -Dfml.coreMods.load=com.almuradev.almura.AlmuraLoadingPlugin, |
Program arguments | --noCoreSearch |
Working directory | ./run (Included in project) |
Module classpath | Almura (IntelliJ Only) |
Advanced Logging -> Program Arguments: -Dlog4j.configurationFile=/path/to/log4j2.xml
Disable Stupid Gradle Daemon: [run this in cmd.exe] (if not exist "%USERPROFILE%/.gradle" mkdir "%USERPROFILE%/.gradle") && (echo. >> "%USERPROFILE%/.gradle/gradle.properties" && echo org.gradle.daemon=false >> "%USERPROFILE%/.gradle/gradle.properties")