-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
52 lines (43 loc) · 1.33 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
kotlin("jvm") version "1.8.0"
id("com.github.johnrengelman.shadow") version "8.1.1"
java
}
allprojects {
group = "app.simplecloud.plugin"
version = "1.0-SNAPSHOT"
apply {
plugin("java")
plugin("org.jetbrains.kotlin.jvm")
plugin("com.github.johnrengelman.shadow")
}
repositories {
mavenCentral()
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven("https://oss.sonatype.org/content/repositories/snapshots")
maven("https://oss.sonatype.org/content/repositories/central")
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://jitpack.io")
}
kotlin {
jvmToolchain(17)
}
dependencies {
compileOnly("net.luckperms:api:5.4")
implementation("net.kyori:adventure-api:4.14.0")
implementation("com.google.code.gson:gson:2.10.1")
implementation("net.kyori:adventure-text-minimessage:4.14.0")
}
}
subprojects {
dependencies {
implementation(kotlin("stdlib"))
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.jvmTarget = "17"
}
tasks.named("shadowJar", ShadowJar::class) {
mergeServiceFiles()
}
}