mirror of
https://github.com/YatopiaMC/Yatopia.git
synced 2024-11-22 10:35:42 +01:00
c1a03b89af
* Updated Upstream and Sidestream(s) (Paper/Tuinity/Airplane/Purpur/Empirecraft) Upstream/An Sidestream has released updates that appears to apply and compile correctly This update has NOT been tested by YatopiaMC and as with ANY update, please do your own testing. Paper Changes: fbae9dbe0 [Auto] Updated Upstream (Bukkit/CraftBukkit) ac4a33aab [Auto] Updated Upstream (Bukkit) c1e07158b [Auto] Updated Upstream (Bukkit/CraftBukkit) 5e4b88e95 Fix dangling sout 23afda179 basic hostname validation 0fb8bdf0e Updated Upstream (Bukkit/CraftBukkit) (#5508) 88ab784da [Auto] Updated Upstream (CraftBukkit) ca7111d5f Fix PlayerItemConsumeEvent cancelling (fixes #4682) (#5383) 06fb560dc Add support for tab completing and highlighting console input from the Brigadier command tree (#5437) 0a9b89c7a Fix occasional light gen issues for neighbor blocks (#5500) a08be1ec7 [Auto] Updated Upstream (CraftBukkit) Tuinity Changes: 7d36676 Fix light source locking f1ec0c2 Add concurrency check to ProtoChunk light sources 159d146 Improvements to chunk loader system Airplane Changes: 3b3cde7 Correctly use DEAR values, fix config reloading dd60919 Updated Upstream (Tuinity) Purpur Changes: 5674cdc Updated Upstream (Paper) Empirecraft Changes: efda8c5b Updated Paper * Updated Upstream and Sidestream(s) (Paper/Tuinity) Upstream/An Sidestream has released updates that appears to apply and compile correctly This update has NOT been tested by YatopiaMC and as with ANY update, please do your own testing. Paper Changes: 39bf5b525 Update teams known as code owners Tuinity Changes: b12d0cc Replace ticket level propagator 42df8e1 Correctly handle recursion for chunkholder updates 73eb2a8 Do not copy visible chunks 8a4f3be Do not schedule poi task for each block write on chunk gen * Multithreaded Entity Tracker fixup
70 lines
2.3 KiB
Plaintext
70 lines
2.3 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}\""
|
|
if(!System.getenv("BRANCH_NAME").isNullOrEmpty()) {
|
|
currentBranch = System.getenv("BRANCH_NAME")
|
|
} else if (!System.getenv("GITHUB_HEAD_REF").isNullOrEmpty()) {
|
|
currentBranch = System.getenv("GITHUB_HEAD_REF")
|
|
} else if (!System.getenv("GITHUB_REF").isNullOrEmpty()) {
|
|
currentBranch = System.getenv("GITHUB_REF").substring("refs/heads/".length)
|
|
} else {
|
|
currentBranch = gitCmd("rev-parse", "--abbrev-ref", "HEAD").output.toString().trim()
|
|
if(currentBranch == "HEAD") logger.warn("You are currently in \'detached HEAD\' state, branch information isn\'t available")
|
|
}
|
|
forkVersion = "git-$forkName-$currentBranch-$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")
|
|
}
|
|
|
|
logger.lifecycle("Configured version string: $calcVersionString")
|
|
}
|
|
|
|
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/")
|
|
maven("https://jitpack.io")
|
|
mavenLocal()
|
|
maven("${rootProjectDir}/.repository")
|
|
}
|
|
|
|
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()
|
|
}
|
|
}
|