mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-18 00:47:42 +01:00
55 lines
1.5 KiB
Kotlin
55 lines
1.5 KiB
Kotlin
import xyz.jpenilla.toothpick.gitCmd
|
|
import xyz.jpenilla.toothpick.toothpick
|
|
|
|
plugins {
|
|
`java-library`
|
|
`maven-publish`
|
|
id("xyz.jpenilla.toothpick") version "1.0.0-SNAPSHOT"
|
|
}
|
|
|
|
toothpick {
|
|
forkName = "Purpur"
|
|
groupId = "net.pl3x.purpur"
|
|
forkUrl = "https://github.com/pl3xgaming/Purpur"
|
|
val versionTag = System.getenv("BUILD_NUMBER")
|
|
?: "\"${gitCmd("rev-parse", "--short", "HEAD").output}\""
|
|
forkVersion = "git-$forkName-$versionTag"
|
|
|
|
minecraftVersion = "1.16.5"
|
|
nmsPackage = "1_16_R3"
|
|
nmsRevision = "R0.1-SNAPSHOT"
|
|
|
|
upstream = "Paper"
|
|
upstreamBranch = "origin/master"
|
|
|
|
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()
|
|
}
|
|
|
|
publishing.repositories.maven {
|
|
url = uri("https://repo.pl3x.net/snapshots")
|
|
credentials(PasswordCredentials::class)
|
|
}
|
|
}
|