mirror of
https://github.com/YatopiaMC/Yatopia.git
synced 2024-10-02 09:08:06 +02:00
985b5655f5
This has been in work for a bunch of time. Zoe ( duplexsystem or budgidiere, whatever ) has put a ton of work into this. We now have a bugfree build system that works flawlessly. Co-authored-by: Ivan Pekov <ivan@mrivanplays.com> Co-authored-by: Simon Gardling <titaniumtown@gmail.com> Co-authored-by: toinouH <toinouh2003@gmail.com> P.s the one who merged this is ivan and not bud.
61 lines
1.7 KiB
Plaintext
61 lines
1.7 KiB
Plaintext
plugins {
|
|
`java-library`
|
|
`maven-publish`
|
|
toothpick
|
|
}
|
|
|
|
toothpick {
|
|
forkName = "Yatopia"
|
|
groupId = "org.yatopiamc"
|
|
val versionTag = System.getenv("BUILD_NUMBER")
|
|
?: "\"${gitCmd("rev-parse", "--short", "HEAD").output}\""
|
|
forkVersion = "git-$forkName-$versionTag"
|
|
forkUrl = "https://github.com/YatopiaMC/Yatopia"
|
|
|
|
minecraftVersion = "1.16.5"
|
|
nmsPackage = "1_16_R3"
|
|
nmsRevision = "R0.1-SNAPSHOT"
|
|
|
|
upstream = "Paper"
|
|
upstreamBranch = "origin/master"
|
|
|
|
paperclipName = "yatopia-$minecraftVersion-paperclip.jar"
|
|
|
|
patchCreditsOutput = "PATCHES.md"
|
|
patchCreditsTemplate = ".template.md"
|
|
|
|
server {
|
|
project = project(":$forkNameLowercase-server")
|
|
patchesDir = rootProject.projectDir.resolve("patches/server")
|
|
}
|
|
api {
|
|
project = project(":$forkNameLowercase-api")
|
|
patchesDir = rootProject.projectDir.resolve("patches/api")
|
|
}
|
|
}
|
|
|
|
subprojects {
|
|
repositories {
|
|
mavenCentral()
|
|
maven("https://repo.aikar.co/content/groups/aikar/")
|
|
maven("https://nexus.velocitypowered.com/repository/velocity-artifacts-snapshots/")
|
|
maven("https://libraries.minecraft.net")
|
|
maven("https://repo.codemc.io/repository/maven-public/")
|
|
mavenLocal()
|
|
}
|
|
|
|
java {
|
|
if(JavaVersion.VERSION_1_8 > JavaVersion.current()){
|
|
error("This build must be run with Java 8 or better")
|
|
}
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
targetCompatibility = JavaVersion.current()
|
|
withSourcesJar()
|
|
}
|
|
|
|
publishing.repositories.maven {
|
|
url = uri("https://repo.codemc.io/repository/maven-snapshots/")
|
|
credentials(PasswordCredentials::class)
|
|
}
|
|
}
|