-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
58 lines (50 loc) · 1.65 KB
/
build.gradle.kts
File metadata and controls
58 lines (50 loc) · 1.65 KB
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
plugins {
kotlin("jvm") version "1.9.0"
id("com.github.johnrengelman.shadow") version "8.1.1"
id("xyz.jpenilla.run-paper") version "1.1.0"
}
group = "com.kruthers"
version = "2.3.0"
description = "Allows you to ingrate github support into your datapack folder in game"
repositories {
mavenCentral()
maven("https://repo.papermc.io/repository/maven-public/")
}
dependencies {
compileOnly(kotlin("stdlib")) //kotlin is provided by panda lib
compileOnly("io.papermc.paper:paper-api:1.20.1-R0.1-SNAPSHOT")
//jgit
implementation("org.eclipse.jgit:org.eclipse.jgit:6.3.0.202209071007-r")
implementation("org.eclipse.jgit:org.eclipse.jgit.ssh.jsch:6.3.0.202209071007-r")
//cloud - provided by panda lib
val cloudVersion = project.properties["cloud_version"].toString()
compileOnly("cloud.commandframework","cloud-core",cloudVersion)
compileOnly("cloud.commandframework","cloud-annotations",cloudVersion)
compileOnly("cloud.commandframework","cloud-paper",cloudVersion)
compileOnly("cloud.commandframework","cloud-minecraft-extras",cloudVersion)
}
tasks {
shadowJar {
archiveClassifier.set("")
minimize {
exclude(dependency("org.eclipse.jgit:org.eclipse.jgit.ssh.jsch:*"))
}
}
build {
dependsOn(shadowJar)
dependsOn(processResources)
}
processResources {
expand("name" to project.name, "description" to project.description, "version" to project.version)
}
runServer {
dependsOn(build)
minecraftVersion("1.20.1")
}
}
kotlin {
jvmToolchain(17)
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}