-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle.kts
61 lines (48 loc) · 1.37 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
plugins {
`java-library`
`maven-publish`
}
repositories {
mavenLocal()
maven {
url = uri("https://repo.papermc.io/repository/maven-public/")
}
maven {
url = uri("https://oss.sonatype.org/content/repositories/snapshots/")
}
maven {
url = uri("https://mvn.lumine.io/repository/maven-public/")
}
maven {
url = uri("https://repo.maven.apache.org/maven2/")
}
maven {
url = uri("https://maven.citizensnpcs.co/repo")
}
}
dependencies {
implementation("io.papermc.paper:paper-api:${project.properties["craftbukkit.version"]}")
implementation("com.denizenscript:denizen:${project.properties["denizen.version"]}")
implementation("com.ticxo.modelengine:ModelEngine:${project.properties["modelengine.version"]}")
}
group = "net.tickmc"
version = "0.26.8-b" + buildNumber() + "-DEV"
description = "Megizen"
java.sourceCompatibility = JavaVersion.VERSION_17
fun buildNumber(): String = System.getenv("BUILD_NUMBER") ?: "UNKNOWN"
publishing {
publications.create<MavenPublication>("maven") {
from(components["java"])
}
}
tasks.withType<JavaCompile>() {
options.encoding = "UTF-8"
}
tasks.withType<Javadoc>() {
options.encoding = "UTF-8"
}
tasks.processResources {
filesMatching("plugin.yml") {
expand(mapOf("BUILD_NUMBER" to System.getenv("BUILD_NUMBER")))
}
}