-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
48 lines (41 loc) · 1.14 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
plugins {
id("com.github.johnrengelman.shadow") version "7.1.2"
id("java")
id("xyz.jpenilla.run-paper") version "2.1.0"
}
group = "fr.arax-gaming"
version = "0.1.0-SNAPSHOT"
repositories {
mavenCentral()
maven("https://repo.papermc.io/repository/maven-public/")
}
dependencies {
compileOnly("io.papermc.paper:paper-api:1.20.1-R0.1-SNAPSHOT")
implementation("cloud.commandframework", "cloud-paper", "1.8.3")
implementation("cloud.commandframework:cloud-core:1.8.3")
implementation("cloud.commandframework:cloud-annotations:1.8.3")
annotationProcessor("cloud.commandframework:cloud-annotations:1.8.3")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.1")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.8.1")
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}
tasks {
processResources {
expand("version" to version)
}
jar {
enabled = false
dependsOn(shadowJar)
}
shadowJar {
archiveClassifier.set("")
}
runServer {
minecraftVersion("1.20.1")
}
}
tasks.getByName<Test>("test") {
useJUnitPlatform()
}