-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle.kts
60 lines (53 loc) · 1.65 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
plugins {
java
id("com.github.johnrengelman.shadow") version "8.1.1"
}
group = "net.azisaba.afnw"
version = "1.5.0-SNAPSHOT"
repositories {
mavenCentral()
maven {
name = "papermc-repo"
url = uri("https://papermc.io/repo/repository/maven-public/")
}
maven {
name = "sonatype"
url = uri("https://oss.sonatype.org/content/groups/public/")
}
maven {
name = "azisaba"
url = uri("https://repo.azisaba.net/repository/maven-public/")
}
maven {
name = "essentialsx"
url = uri("https://repo.essentialsx.net/releases/")
}
if (properties["azisabaNmsUsername"] != null && properties["azisabaNmsPassword"] != null) {
maven {
name = "azisabaNms"
credentials(PasswordCredentials::class)
url = uri("https://repo.azisaba.net/repository/nms/")
}
}
mavenLocal()
}
dependencies {
implementation("net.blueberrymc:native-util:2.1.0")
compileOnly("io.papermc.paper:paper-api:1.20.2-R0.1-SNAPSHOT")
compileOnly("org.spigotmc:spigot:1.20.2-R0.1-SNAPSHOT")
compileOnly("net.azisaba.ballotbox:receiver:1.0.1")
compileOnly("net.essentialsx:EssentialsX:2.19.7")
}
java.toolchain.languageVersion.set(JavaLanguageVersion.of(17))
tasks {
compileJava {
options.encoding = "UTF-8"
}
processResources {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
from(sourceSets.main.get().resources.srcDirs) {
filter(org.apache.tools.ant.filters.ReplaceTokens::class, mapOf("tokens" to mapOf("version" to project.version.toString())))
filteringCharset = "UTF-8"
}
}
}