-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
46 lines (37 loc) · 1.04 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("java")
id("java-library")
kotlin("jvm") version "1.6.21"
}
group = "me.xhyrom.hylib"
version = "2.0.2"
description = "A powerful library for paper plugins."
repositories {
mavenCentral()
}
subprojects {
apply(plugin = "java")
apply(plugin = "java-library")
apply(plugin = "org.jetbrains.kotlin.jvm")
group = rootProject.group
version = rootProject.version
description = rootProject.description
repositories {
mavenCentral()
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://repo.codemc.org/repository/maven-public/")
maven("https://repo.codemc.io/repository/maven-snapshots/")
maven("https://oss.sonatype.org/content/groups/public/")
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "17"
}
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "17"
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of("17"))
withSourcesJar()
}