mirror of
https://github.com/SparklyPower/SparklyPaper.git
synced 2025-12-19 15:09:27 +00:00
51 lines
1.4 KiB
Plaintext
51 lines
1.4 KiB
Plaintext
import xyz.jpenilla.toothpick.gitCmd
|
|
import xyz.jpenilla.toothpick.toothpick
|
|
|
|
plugins {
|
|
`java-library`
|
|
id("xyz.jpenilla.toothpick") version "1.0.0-SNAPSHOT"
|
|
}
|
|
|
|
toothpick {
|
|
forkName = "SparklyPaper"
|
|
groupId = "net.perfectdreams.sparklypaper"
|
|
val versionTag = System.getenv("BUILD_NUMBER")
|
|
?: "\"${gitCmd("rev-parse", "--short", "HEAD").output}\""
|
|
forkVersion = "git-$forkName-$versionTag"
|
|
forkUrl = "https://github.com/SparklyPower/SparklyPaper"
|
|
|
|
minecraftVersion = "1.16.5"
|
|
nmsPackage = "1_16_R3"
|
|
nmsRevision = "R0.1-SNAPSHOT"
|
|
|
|
upstream = "Tuinity"
|
|
upstreamBranch = "origin/master"
|
|
|
|
paperclipName = "launcher-sparklypaper"
|
|
|
|
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")
|
|
mavenLocal()
|
|
}
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
withSourcesJar()
|
|
}
|
|
}
|