-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.gradle.kts
58 lines (47 loc) · 1.42 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("com.github.johnrengelman.shadow") version "7.1.2"
kotlin("jvm") version "1.7.20"
}
group = "com.github.frcsty"
version = "2.3.1"
val libsPath = "com.github.frcsty.frozenjoin"
val javaVersion = JavaVersion.VERSION_16
repositories {
mavenCentral()
maven("https://papermc.io/repo/repository/maven-public/")
maven("https://repo.extendedclip.com/content/repositories/placeholderapi/")
maven("https://repo.codemc.org/repository/maven-public")
maven("https://jitpack.io/")
}
dependencies {
implementation(projects.actionLib)
implementation(libs.triumph.cmds)
implementation(libs.bstats)
compileOnly(libs.paper)
compileOnly(libs.papi)
}
java {
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
}
tasks {
withType<ProcessResources> {
expand("version" to project.version)
}
withType<KotlinCompile> {
kotlinOptions {
jvmTarget = javaVersion.majorVersion
}
}
withType<ShadowJar> {
relocate("org.bstats", "${libsPath}.bstats")
relocate("me.mattstudios.mf", "${libsPath}.mf-utils")
relocate("kotlin", "${libsPath}.kotlin")
dependencies {
exclude(dependency("org.jetbrains:annotations"))
}
archiveClassifier.set(null as String?)
}
}