forked from PurpurMC/Purpur
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
42 lines (36 loc) · 1.05 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
plugins {
`java-library`
`maven-publish`
id("xyz.jpenilla.toothpick")
}
toothpick {
forkName = "Purpur"
groupId = "dev.kamillaova.purpur"
forkUrl = "https://github.com/Kamillaova/Purpur"
val versionTag = System.getenv("BUILD_NUMBER")
?: "\"${commitHash() ?: error("Could not obtain git hash")}\""
forkVersion = "git-$forkName-$versionTag"
minecraftVersion = "1.16.5"
nmsPackage = "1_16_R3"
nmsRevision = "R0.1-SNAPSHOT"
upstream = "Paper"
upstreamBranch = "ver/1.16.5"
server {
project = projects.purpurServer.dependencyProject
patchesDir = rootProject.projectDir.resolve("patches/server")
}
api {
project = projects.purpurApi.dependencyProject
patchesDir = rootProject.projectDir.resolve("patches/api")
}
}
subprojects {
repositories {
maven("https://nexus.velocitypowered.com/repository/velocity-artifacts-snapshots/")
maven("https://oss.sonatype.org/content/repositories/snapshots/")
}
java {
sourceCompatibility = JavaVersion.toVersion(17)
targetCompatibility = JavaVersion.toVersion(17)
}
}