-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
58 lines (47 loc) · 1.26 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
plugins {
java
`java-library`
id("com.github.johnrengelman.shadow") version "8.1.1"
id("org.cadixdev.licenser") version "0.6.1"
}
group = "ru.padow"
version = "1.0.5"
java {
sourceCompatibility = JavaVersion.toVersion(11)
targetCompatibility = JavaVersion.toVersion(11)
disableAutoTargetJvm()
}
license {
include("**/*.java")
header(project.file("LICENSE.head"))
}
repositories {
mavenLocal()
mavenCentral()
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://nexus.scarsz.me/content/groups/public/")
}
dependencies {
compileOnly("io.papermc.paper:paper-api:1.20.2-R0.1-SNAPSHOT")
compileOnly("com.discordsrv:discordsrv:1.28.1")
implementation("org.bstats:bstats-bukkit:3.0.2")
api("github.scarsz:configuralize:1.3.2") {
exclude(module = "json-simple")
exclude(module = "snakeyaml")
}
}
tasks {
processResources {
filesMatching("plugin.yml") {
expand("version" to version)
}
}
shadowJar {
archiveClassifier.set("")
minimize {
exclude(dependency("github.scarsz:configuralize"))
}
relocate("org.bstats", "ru.padow.discordsrvoauth.bstats")
exclude("META-INF/maven/**")
}
}