forked from Ivan8or/GoldenDupes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
53 lines (44 loc) · 1.36 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
plugins {
java
id("com.github.johnrengelman.shadow") version "8.1.1"
}
val basePackage = "online.umbcraft.libs"
group = "online.umbcraft.libraries"
version = "1.5.3"
description = "Golden Dupes - Dupes from the golden days of minecraft!"
repositories {
mavenLocal()
mavenCentral()
maven { url = uri("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") }
maven { url = uri("https://repo.papermc.io/repository/maven-public/") }
}
dependencies {
implementation("org.bstats:bstats-bukkit:2.2.1")
compileOnly("dev.folia:folia-api:1.20.1-R0.1-SNAPSHOT")
compileOnly("org.spigotmc:spigot-api:1.20.1-R0.1-SNAPSHOT")
}
tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar> {
archiveFileName = "${project.name}-${project.version}.${archiveExtension.get()}"
exclude("META-INF/**")
minimize()
relocate("org.bstats", "${basePackage}.org.bstats")
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
configure<JavaPluginExtension> {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
tasks.build.configure {
dependsOn("shadowJar")
}
tasks {
processResources {
filesMatching("**/plugin.yml") {
expand(
"version" to project.version,
"description" to project.description)
}
}
}