diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 4a32dde6f..c3364e079 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -6,16 +6,16 @@ Sign the CLA [here](https://cla-assistant.io/CitizensDev/Citizens2) Development environment setup ============================= 1. Clone Citizens2 and CitizensAPI repos to your machine -2. Import the maven project to your IDE of choice. Citizens targets Java 8, and Java 9+ code should not be used. +2. Import the maven project to your IDE of choice. Citizens targets Java 8 - Java 9+ code should not be used. Citizens is structured using an overarching maven project with several submodules for different parts of the codebase `api` - the API, with a loosely defined boundary but mainly containing interfaces and events that are agnostic to the lifecycle of a Spigot plugin `main` - the main Citizens codebase which implements commands and Spigot plugin-specific code -`dist` - the distribution subproject which will actually build your Citizens JAR -NMS submodules, from 1.8.8 - the current Minecraft version (excluding 1.9) +`dist` - the distribution subproject which will actually build your Citizens JAR with relevant submodules -3. Next, run Spigot's BuildTools.jar for all the currently supported Minecraft versions to install the Spigot JARs to your local maven repo (see `dist/pom.xml` for the current list) -Try to build your first Citizens2 JAR using `mvn install dist/pom.xml` +3. Next, run Spigot's BuildTools.jar for all supported Minecraft versions to install the Spigot JARs to your local maven repo (see `dist/pom.xml` for the current list) +We recommend using the `dev` maven build profile which will only build for the latest Minecraft version. This saves you having to install 10 different old versions. +Try to build your first Citizens2 JAR using `mvn install dist/pom.xml -P dev` Now you're ready to start creating a pull request! diff --git a/dist/pom.xml b/dist/pom.xml index 11ecd4fd2..9f743ecef 100644 --- a/dist/pom.xml +++ b/dist/pom.xml @@ -49,55 +49,178 @@ - - - ${project.groupId} - citizens-main - ${project.version} - jar - compile - - - ${project.groupId} - citizens-v1_8_R3 - ${project.version} - jar - compile - - - ${project.groupId} - citizens-v1_12_R1 - ${project.version} - jar - compile - - - ${project.groupId} - citizens-v1_16_R3 - ${project.version} - jar - compile - - - ${project.groupId} - citizens-v1_18_R2 - ${project.version} - jar - compile - - - ${project.groupId} - citizens-v1_19_R3 - ${project.version} - jar - compile - - - ${project.groupId} - citizens-v1_20_R1 - ${project.version} - jar - compile - - + + + spigot-release + + true + + + + ${project.groupId} + citizens-main + ${project.version} + jar + compile + + + ${project.groupId} + citizens-v1_8_R3 + ${project.version} + jar + compile + + + ${project.groupId} + citizens-v1_12_R1 + ${project.version} + jar + compile + + + ${project.groupId} + citizens-v1_16_R3 + ${project.version} + jar + compile + + + ${project.groupId} + citizens-v1_18_R2 + ${project.version} + jar + compile + + + ${project.groupId} + citizens-v1_19_R3 + ${project.version} + jar + compile + + + ${project.groupId} + citizens-v1_20_R1 + ${project.version} + jar + compile + + + + + full + + + ${project.groupId} + citizens-main + ${project.version} + jar + compile + + + ${project.groupId} + citizens-v1_8_R3 + ${project.version} + jar + compile + + + ${project.groupId} + citizens-v1_10_R1 + ${project.version} + jar + compile + + + ${project.groupId} + citizens-v1_11_R1 + ${project.version} + jar + compile + + + ${project.groupId} + citizens-v1_12_R1 + ${project.version} + jar + compile + + + ${project.groupId} + citizens-v1_13_R2 + ${project.version} + jar + compile + + + ${project.groupId} + citizens-v1_14_R1 + ${project.version} + jar + compile + + + ${project.groupId} + citizens-v1_15_R1 + ${project.version} + jar + compile + + + ${project.groupId} + citizens-v1_16_R3 + ${project.version} + jar + compile + + + ${project.groupId} + citizens-v1_17_R1 + ${project.version} + jar + compile + + + ${project.groupId} + citizens-v1_18_R2 + ${project.version} + jar + compile + + + ${project.groupId} + citizens-v1_19_R3 + ${project.version} + jar + compile + + + ${project.groupId} + citizens-v1_20_R1 + ${project.version} + jar + compile + + + + + dev + + + ${project.groupId} + citizens-main + ${project.version} + jar + compile + + + ${project.groupId} + citizens-v1_20_R1 + ${project.version} + jar + compile + + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml index 833f27202..fcae9b460 100644 --- a/pom.xml +++ b/pom.xml @@ -1,5 +1,7 @@ - + 4.0.0 pom net.citizensnpcs @@ -28,16 +30,51 @@ - clean package install + clean package install - - main - v1_8_R3 - v1_12_R1 - v1_16_R3 - v1_18_R2 - v1_19_R3 - v1_20_R1 - dist - + + + spigot-release + + true + + + main + v1_8_R3 + v1_12_R1 + v1_16_R3 + v1_18_R2 + v1_19_R3 + v1_20_R1 + dist + + + + full + + main + v1_8_R3 + v1_10_R1 + v1_11_R1 + v1_12_R1 + v1_13_R2 + v1_14_R1 + v1_15_R1 + v1_16_R3 + v1_17_R1 + v1_18_R2 + v1_19_R3 + v1_20_R1 + dist + + + + dev + + main + v1_20_R1 + dist + + + \ No newline at end of file