Setting up a development environment
This guide is intended for people wishing to help with the creation of the mod. It assumes you know the basics of git and java.
Requirements
- Java Development Kit version 8 (https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html)
- Intelij Idea, you can also use eclipse but that isn't covered. (https://www.jetbrains.com/idea/download/#section=windows)
- This guide covers MS Windows setup. Sorry.
Setup Reborn Core
If you are not planning to make changes to Reborn Core just skip this section
- Open InteliJ IDEA and Create a new project from Source control
- Clone Reborn Core repo (https://github.com/TechReborn/RebornCore.git)
- Refresh Gradle project
- Generate sources for dependencies
- Open the
Gradle Settings
dialog from the Gradle tab. Change theBuild and run using
andRun tests using
fields to 'IntelliJ IDEA'. - Go to
File → Project Structure → Project
and setProject compiler output
to $PROJECT_DIR$/out
Setup Tech Reborn
Steps are same as for RC.
- Open InteliJ IDEA and Create a new project from Source control
- Clone Reborn Core repo (https://github.com/TechReborn/TechReborn.git)
- Refresh Gradle project
- Generate sources for dependencies
- Open the
Gradle Settings
dialog from the Gradle tab. Change theBuild and run using
andRun tests using
fields to 'IntelliJ IDEA'. - Go to
File → Project Structure → Project
and setProject compiler output
to $PROJECT_DIR$/out
Setup RC as TR module
Skip this section if you are not going to make changes to RC
- Go to
File → Project Structure → Modules
then click on + button and selectImport Module
- Select RebornCore folder and then
Import module from external model
and choose Gradle - Close
Project Structure
and refresh Gradle project - Reopen
File → Project Structure → Modules
then selectmain
module of TR and go toDependencies
tab - Remove RebornCore dependency from Gradle and add RebornCore dependency from module
- You will have to repeat step above if you will refresh TR Gradle project.