-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
46 lines (37 loc) · 1.43 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.7.21"
}
group = "me.enderkill98.notabackdoor"
version = "0.1.0"
repositories {
mavenCentral()
// Spigot
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
/*
As Spigot-API depends on the BungeeCord ChatComponent-API,
we need to add the Sonatype OSS repository, as Gradle,
in comparison to maven, doesn't want to understand the ~/.m2
directory unless added using mavenLocal(). Maven usually just gets
it from there, as most people have run the BuildTools at least once.
This is therefore not needed if you're using the full Spigot/CraftBukkit,
or if you're using the Bukkit API.
*/
maven("https://oss.sonatype.org/content/repositories/snapshots")
maven("https://oss.sonatype.org/content/repositories/central")
// mavenLocal() // This is needed for CraftBukkit and Spigot.
}
dependencies {
testImplementation(kotlin("test"))
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
dependencies {
// Pick only one of these and read the comment in the repositories block.
compileOnly("org.spigotmc:spigot-api:1.19.4-R0.1-SNAPSHOT") // The Spigot API with no shadowing. Requires the OSS repo.
//compileOnly("org.spigotmc:spigot:1.19.4-R0.1-SNAPSHOT") // The full Spigot server with no shadowing. Requires mavenLocal.
}