-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
66 lines (55 loc) · 1.55 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
java
id("xyz.jpenilla.run-paper") version "2.1.0"
id("com.github.johnrengelman.shadow") version "8.1.1"
kotlin("jvm") version "1.9.0"
}
group = "dev.thelecrafter.plugins.ambientstars"
version = "1.1.0-1.19"
repositories {
mavenCentral()
maven("https://papermc.io/repo/repository/maven-public/")
maven("https://oss.sonatype.org/content/repositories/snapshots")
maven("https://oss.sonatype.org/content/repositories/central")
}
dependencies {
compileOnly("io.papermc.paper:paper-api:1.19.2-R0.1-SNAPSHOT")
implementation("io.papermc:paperlib:1.0.8")
implementation("org.kohsuke:github-api:1.315")
}
tasks.shadowJar {
minimize()
relocate("org.jetbrains", "$group.org.jetbrains")
relocate("io.papermc.lib", "$group.io.papermc.lib")
relocate("org.kohsuke", "$group.org.kohsuke")
archiveFileName.set("${project.name}-${project.version}.jar")
}
tasks.processResources {
inputs.property("version", project.version)
filesMatching("plugin.yml") {
expand("version" to project.version)
}
}
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions {
jvmTarget = "17"
javaParameters = true
}
val compileTestKotlin: KotlinCompile by tasks
compileTestKotlin.kotlinOptions {
jvmTarget = "17"
javaParameters = true
}
tasks.build {
dependsOn.add("shadowJar")
}
tasks.jar {
enabled = false
}
tasks.runServer {
minecraftVersion("1.19")
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}