-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
78 lines (67 loc) · 1.7 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
plugins {
java
`maven-publish`
id("com.github.johnrengelman.shadow") version "7.1.2"
}
repositories {
mavenLocal()
maven {
name = "Paper MC"
url = uri("https://repo.papermc.io/repository/maven-public/")
}
maven {
url = uri("https://oss.sonatype.org/content/groups/public/")
}
maven {
name = "PlaceholderAPI"
url = uri("https://repo.extendedclip.com/content/repositories/placeholderapi/")
}
maven {
name = "Vault API"
url = uri("https://jitpack.io")
}
maven {
url = uri("https://repo.maven.apache.org/maven2/")
}
}
dependencies {
implementation("org.jetbrains:annotations:23.0.0")
compileOnly("com.destroystokyo.paper:paper-api:1.12.2-R0.1-SNAPSHOT")
compileOnly("me.clip:placeholderapi:2.11.2")
compileOnly("com.github.MilkBowl:VaultAPI:1.7")
}
tasks.processResources {
expand("version" to project.version)
}
group = "xyz.distemi.prtp"
version = "1.4.2"
description = "PRTP"
java.sourceCompatibility = JavaVersion.VERSION_1_8
publishing {
publications.create<MavenPublication>("maven") {
from(components["java"])
}
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
tasks.register("copy_to_1_12_2_test_env") {
doLast {
copy {
from("./build/libs/PRTP-1.4.jar")
into("../test-server1.12.2/plugins/")
}
}
}
tasks.register("copy_to_1_19_2_test_env") {
doLast {
copy {
from("./build/libs/PRTP-1.4.jar")
into("../test-server1.19.2/plugins/")
}
}
}
tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar> {
minimize()
exclude("META-INF")
}