-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
54 lines (43 loc) · 1.2 KB
/
build.gradle.kts
File metadata and controls
54 lines (43 loc) · 1.2 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
plugins {
kotlin("jvm") version "1.9.22"
id("java")
id("io.github.goooler.shadow") version "8.1.8"
id("io.papermc.paperweight.userdev") version "2.0.0-beta.17" apply false
}
repositories {
mavenCentral()
}
group = "io.github.rothes"
version = rootProject.property("versionName").toString()
tasks.register<Copy>("createJars") {
from(project(":bukkit").tasks.named("reobfJar"))
into("$buildDir/allJars")
}
allprojects {
apply(plugin = "java")
apply(plugin = "kotlin")
apply(plugin = "io.github.goooler.shadow")
group = "io.github.rothes.protocolstringreplacer"
version = rootProject.property("versionName").toString()
val javaVer = JavaVersion.VERSION_1_8
java {
disableAutoTargetJvm()
sourceCompatibility = javaVer
targetCompatibility = javaVer
withSourcesJar()
withJavadocJar()
}
tasks.compileJava {
options.encoding = "UTF-8"
sourceCompatibility = javaVer.toString()
targetCompatibility = javaVer.toString()
}
tasks.compileKotlin {
kotlinOptions {
jvmTarget = javaVer.toString()
}
}
tasks.javadoc {
options.encoding = "UTF-8"
}
}