-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
build.gradle.kts
39 lines (32 loc) · 1.06 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
plugins {
// see https://fabricmc.net/develop/ for new versions
id("fabric-loom") version "1.9-SNAPSHOT" apply false
// see https://projects.neoforged.net/neoforged/moddevgradle for new versions
id("net.neoforged.moddev") version "0.1.110" apply false
kotlin("jvm") version "2.0.21"
kotlin("plugin.serialization") version "2.0.21"
}
repositories {
mavenCentral()
}
subprojects {
plugins.apply("org.jetbrains.kotlin.jvm")
plugins.apply("org.jetbrains.kotlin.plugin.serialization")
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.3")
implementation(kotlin("reflect"))
}
// Loader specific
if (path != ":common") {
tasks.withType<JavaCompile> {
source(project(":common").sourceSets.main.get().allSource)
}
// For now, just skip javadoc
tasks.withType<Javadoc>().all {
enabled = false
}
tasks.withType<ProcessResources> {
from(project(":common").sourceSets.main.get().resources)
}
}
}