This repository was archived by the owner on Jan 23, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
68 lines (54 loc) · 1.59 KB
/
build.gradle.kts
File metadata and controls
68 lines (54 loc) · 1.59 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
59
60
61
62
63
64
65
66
67
68
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id ("org.jetbrains.kotlin.jvm")
id("cl.franciscosolis.sonatype-central-upload")
`maven-publish`
}
group = "net.rk4z.s1"
version = "1.1.0"
repositories {
mavenCentral()
}
subprojects {
apply(plugin = "org.jetbrains.kotlin.jvm")
apply(plugin = "cl.franciscosolis.sonatype-central-upload")
apply(plugin = "maven-publish")
group = rootProject.group
repositories {
mavenCentral()
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://oss.sonatype.org/content/repositories/snapshots")
}
dependencies {
implementation("org.jetbrains.kotlin:kotlin-reflect:2.0.20")
implementation("org.json:json:20240303")
implementation("org.reflections:reflections:0.10.2")
implementation("org.yaml:snakeyaml:2.3")
}
java {
withSourcesJar()
withJavadocJar()
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
kotlin {
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
}
tasks.withType<KotlinCompile> {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_21)
}
}
tasks.withType<JavaCompile> {
options.release.set(21)
}
tasks.named<Javadoc>("javadoc") {
isFailOnError = false
}
}
tasks.create<Jar>("buildAll") {
dependsOn(":integrations:core:jout", ":integrations:fabric:jout", ":integrations:paper:jout")
}