-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
58 lines (44 loc) · 1.47 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
java
id("com.github.johnrengelman.shadow") version "7.1.0"
}
repositories {
mavenLocal()
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven("https://repo.extendedclip.com/content/repositories/placeholderapi/")
maven("https://repo.maven.apache.org/maven2/")
maven("https://rayzr.dev/repo/")
maven("https://papermc.io/repo/repository/maven-public/")
mavenCentral()
maven(url = "https://oss.sonatype.org/content/repositories/snapshots/") {
name = "sonatype-oss-snapshots"
}
}
dependencies {
compileOnly("io.papermc.paper:paper-api:1.18.2-R0.1-SNAPSHOT")
compileOnly("org.projectlombok:lombok:1.18.22")
compileOnly("me.clip:placeholderapi:2.11.1")
annotationProcessor("org.projectlombok:lombok:1.18.22")
implementation("net.kyori:adventure-text-minimessage:4.10.0")
}
group = "sh.charlie"
version = "1.0.12"
description = "ChitChat"
java.sourceCompatibility = JavaVersion.VERSION_17
val shadowJar: ShadowJar by tasks
tasks.withType<JavaCompile>() {
options.encoding = "UTF-8"
}
tasks.withType<ProcessResources> {
filesMatching("**/plugin.yml") {
expand("version" to project.version)
}
}
tasks.register<Copy>("copyJarToServerPlugins") {
from(tasks.getByPath("shadowJar"))
into(layout.projectDirectory.dir("server/plugins"))
}
tasks.withType<JavaCompile>() {
options.encoding = "UTF-8"
}