This repository has been archived by the owner on Apr 27, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #162 from Crazy-Crew/ver/1.3
A kitchen sink
- Loading branch information
Showing
33 changed files
with
4,188 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,22 @@ | ||
build | ||
.gradle | ||
.idea | ||
|
||
core/.gradle | ||
core/build | ||
buildSrc/.gradle | ||
buildSrc/build | ||
|
||
fabric/.gradle | ||
fabric/build | ||
common/.gradle | ||
common/build | ||
|
||
paper/.gradle | ||
paper/build | ||
jars | ||
|
||
build | ||
|
||
buildSrc/build | ||
buildSrc/.gradle | ||
paper/build | ||
paper/.gradle | ||
|
||
.vscode/ | ||
core/bin/ | ||
paper/bin/ | ||
paper/run | ||
!paper/run/config | ||
!paper/run/spigot.yml | ||
!paper/run/bukkit.yml | ||
!paper/run/eula.txt | ||
!paper/run/server.properties | ||
!paper/run/plugins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Contributing to CrazyCrates | ||
Contributions to the project are always welcome, Pull Requests do have some guidelines before being approved. | ||
|
||
## You should always create the fork as a personal repository not in an organization. | ||
Any pull request made by a fork in an organization prevents modifications. Everyone has their own way of doing things and rather asking you to change that. A personal fork lets com change the things | ||
that we have a tick about. | ||
|
||
If you do not use a personal fork, We have to manually merge your pull request which means it's marked as closed instead of merged. | ||
|
||
## Requirements | ||
* `git` | ||
* Java 17 ( Adoptium is recommended ) | ||
|
||
Pull Requests must be labeled properly according to if it's a bug fix, a new feature or enhancements to the code base. | ||
* `git checkout -b fix/your_fix` | ||
* `git checkout -b feature/your_feature` | ||
* `git checkout -b quality/your_enhancement` | ||
* Commit your changes using `git commit -m 'your commit'` | ||
* Push to your branch using `git push` | ||
* Open a pull request to the `main` branch on our repository to add your change. | ||
|
||
You must explain what your pull request is changing and if needed, Supply a video of your change as Pull Requests are a way to get feedback. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,64 @@ | ||
plugins { | ||
id 'java-library' | ||
} | ||
|
||
defaultTasks 'build' | ||
|
||
def combineJars = tasks.register("combineJars", org.gradle.jvm.tasks.Jar) { | ||
mustRunAfter build | ||
alias(libs.plugins.paperweight) | ||
alias(libs.plugins.shadowjar) | ||
|
||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE | ||
alias(libs.plugins.runpaper) | ||
} | ||
|
||
from(files(subprojects.findAll { it.name != 'webmap' }.collect { | ||
it.layout.buildDirectory.file("libs/${rootProject.name}-${it.name}-${it.version}.jar").get() | ||
}).filter { it.name != 'MANIFEST.MF' }.collect { if (it.isDirectory()) it else zipTree(it) }) | ||
project.group = "${rootProject.group}.paper" | ||
project.version = rootProject.version | ||
|
||
doLast { | ||
File dir = new File(rootDir, "jars") | ||
base { | ||
archivesName = "${rootProject.name}-${project.name}" | ||
} | ||
|
||
if (dir.exists()) dir.delete() | ||
dependencies { | ||
implementation(libs.metrics) | ||
|
||
dir.mkdirs() | ||
compileOnly(libs.vault) | ||
|
||
copy { | ||
from(layout.buildDirectory.file("libs/${rootProject.name}-${rootProject.version}.jar")) | ||
into(dir) | ||
} | ||
} | ||
paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:$minecraftVersion-R0.1-SNAPSHOT") | ||
} | ||
|
||
assemble { | ||
subprojects.forEach { project -> dependsOn ":${project.name}:build" } | ||
tasks { | ||
runServer { | ||
jvmArgs("-Dnet.kyori.ansi.colorLevel=truecolor") | ||
|
||
finalizedBy combineJars | ||
} | ||
|
||
subprojects { | ||
apply plugin: 'java-library' | ||
minecraftVersion(minecraftVersion) | ||
} | ||
|
||
repositories { | ||
maven { url = 'https://repo.crazycrew.us/releases' } | ||
assemble { | ||
dependsOn(reobfJar) | ||
} | ||
|
||
maven { url = 'https://jitpack.io' } | ||
shadowJar { | ||
mergeServiceFiles() | ||
|
||
mavenCentral() | ||
} | ||
exclude("META-INF/**") | ||
|
||
if (name == "paper") { | ||
repositories { | ||
maven { url = 'https://repo.extendedclip.com/content/repositories/placeholderapi/' } | ||
List.of( | ||
"org.bstats" | ||
).forEach { | ||
relocate(it, "libs.$it") | ||
} | ||
} | ||
|
||
compileJava { | ||
options.encoding = 'UTF-8' | ||
options.release.set(17) | ||
} | ||
processResources { | ||
Map<String, String> props = new HashMap<>() | ||
|
||
java { | ||
toolchain { | ||
languageVersion = JavaLanguageVersion.of(17) | ||
} | ||
} | ||
props.put("name", rootProject.name) | ||
props.put("version", "$rootProject.version") | ||
props.put("group", "$project.group") | ||
props.put("description", rootProject.description) | ||
|
||
javadoc { | ||
options.encoding = 'UTF-8' | ||
} | ||
props.put("apiVersion", apiVersion) | ||
props.put("authors", authors) | ||
props.put("website", website) | ||
|
||
processResources { | ||
filteringCharset = 'UTF-8' | ||
inputs.properties(props) | ||
|
||
filesMatching("plugin.yml") { | ||
expand(props) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.