-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
44 lines (38 loc) · 1.68 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
plugins {
id("java")
kotlin("jvm") version "1.9.21"
}
repositories {
mavenCentral()
maven("https://jcenter.bintray.com/")
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven("https://mvnrepository.com/artifact/net.md-5/bungeecord-api")
maven("https://oss.sonatype.org/content/repositories/snapshots")
maven("https://repo.minebench.de/")
}
dependencies {
// Align versions of all Kotlin components
implementation(platform(kotlin("bom")))
// Use the Kotlin JDK 8 standard library.
implementation(kotlin("stdlib"))
annotationProcessor("com.velocitypowered", "velocity-api", "3.2.0-SNAPSHOT")
implementation("club.minnced", "discord-webhooks", "0.4.0")
implementation("net.kyori", "adventure-api", "4.8.1")
implementation("net.kyori", "adventure-platform-bungeecord", "4.3.1")
implementation("net.kyori", "adventure-text-minimessage", "4.14.0")
implementation("net.kyori", "adventure-text-serializer-legacy", "4.14.0")
implementation("net.kyori", "adventure-text-serializer-plain", "4.14.0")
compileOnly("com.velocitypowered", "velocity-api", "3.2.0-SNAPSHOT")
compileOnly("net.md-5", "bungeecord-api", "1.20-R0.1-SNAPSHOT")
compileOnly("org.spigotmc", "plugin-annotations", "1.2.2-SNAPSHOT")
compileOnly(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}
tasks.withType<Jar> {
version = "1.0-SNAPSHOT"
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from(configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) })
}