forked from xiaozhangup/PackLayer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
44 lines (36 loc) · 1.25 KB
/
build.gradle.kts
File metadata and controls
44 lines (36 loc) · 1.25 KB
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
plugins {
id("java")
}
val pluginVersion: String by project
val pluginDescription = "Optimize texture pack management on bungee/velocity to never double send the same pack."
group = "io.th0rgal.packsmanager"
version = pluginVersion
repositories {
mavenCentral()
maven("https://oss.sonatype.org/content/repositories/snapshots")
maven("https://mvn.exceptionflug.de/repository/exceptionflug-public/")
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://maven.elytrium.net/repo/")
}
dependencies {
compileOnly("io.github.4drian3d:vpacketevents-api:1.1.0")
compileOnly("com.velocitypowered:velocity-api:3.3.0-SNAPSHOT")
compileOnly("com.velocitypowered:velocity-proxy:3.3.0.1-SNAPSHOT")
annotationProcessor("com.velocitypowered:velocity-api:3.3.0-SNAPSHOT")
compileOnly(fileTree("libs"))
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
tasks {
jar {
filesMatching(arrayOf("bungee.yml", "velocity-plugin.json").asIterable()) {
expand(mapOf("version" to pluginVersion, "description" to pluginDescription))
}
}
compileJava.get().dependsOn(clean)
}