-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle.kts
69 lines (56 loc) · 1.88 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
kotlin("jvm") version "2.0.21"
id("com.github.johnrengelman.shadow") version "8.1.1"
}
group = "pl.funnyskaddon"
version = "2.5.2"
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlin {
jvmToolchain(8)
}
repositories {
mavenCentral()
mavenLocal()
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots")
maven("https://oss.sonatype.org/content/repositories/snapshots")
maven("https://repo.panda-lang.org/releases")
maven("https://repo.panda-lang.org/jitpack")
maven("https://repo.titanvale.net/releases")
maven("https://storehouse.okaeri.eu/repository/maven-public")
}
dependencies {
implementation(kotlin("stdlib"))
implementation("org.bstats:bstats-bukkit:3.1.0")
implementation("commons-io:commons-io:2.17.0")
implementation("eu.okaeri:okaeri-configs-yaml-bukkit:5.0.5")
shadow("org.spigotmc:spigot-api:1.8.8-R0.1-SNAPSHOT")
shadow("net.dzikoysk.funnyguilds:plugin:4.13.0")
shadow("com.github.SkriptLang:Skript:2.6.2") {
isTransitive = false
}
}
tasks.withType<ShadowJar> {
archiveFileName.set("FunnySkAddon ${project.version}.jar")
//Kotlin
relocate("kotlin", "pl.funnyskaddon.libs.kotlin")
//BStats
relocate("org.bstats", "pl.funnyskaddon.bstats")
//Apache
relocate("org.apache", "pl.funnyskaddon.libs.apache")
//Okaeri
relocate("eu.okaeri", "pl.funnyskaddon.libs.okaeri")
exclude("org/intellij/lang/annotations/**")
exclude("org/jetbrains/annotations/**")
minimize()
}
tasks.withType<Copy> {
delete(fileTree(project.buildDir) {
include("resources/main/plugin.yml")
})
filter(ReplaceTokens::class, "tokens" to mapOf("version" to rootProject.version))
}