-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
61 lines (48 loc) · 1.23 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.9.23"
`java-library`
`maven-publish`
id("io.papermc.paperweight.userdev") version "1.7.0"
}
group = "me.invalidjoker"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
paperweight.paperDevBundle("1.20.2-R0.1-SNAPSHOT")
api("org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.1")
api("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1")
api("org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.7.1")
}
tasks {
assemble {
dependsOn(reobfJar)
}
withType<JavaCompile> {
options.encoding = "UTF-8"
options.release.set(17)
}
withType<KotlinCompile> {
kotlinOptions.jvmTarget = "17"
}
}
kotlin {
jvmToolchain(21)
}
// publish to maven local
publishing {
publications {
create<MavenPublication>(project.name) {
from(components["java"])
artifact(tasks.jar.get().outputs.files.single())
this.groupId = project.group.toString()
this.artifactId = project.name.lowercase()
this.version = project.version.toString()
}
}
repositories {
mavenLocal()
}
}