forked from CleverNucleus/data-attributes
-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle.kts
101 lines (80 loc) · 3.05 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
plugins {
id("fabric-loom")
kotlin("jvm") version "2.0.0"
kotlin("plugin.serialization") version "2.0.0"
java
`maven-publish`
id("com.google.devtools.ksp") version "2.0.0-1.0.21"
}
java.sourceCompatibility = JavaVersion.VERSION_17
java.targetCompatibility = JavaVersion.VERSION_17
group = "${properties["maven_group"]}"
version = "${properties["mod_version"]}-${properties["loader"]}"
loom {
runConfigs.configureEach {
ideConfigGenerated(true)
}
}
repositories {
maven("https://maven.wispforest.io/releases")
maven("https://maven.terraformersmc.com")
maven("https://api.modrinth.com/maven")
maven("https://maven.kosmx.dev/")
maven("https://maven.parchmentmc.org")
maven("https://maven.quiltmc.org/repository/release/")
}
dependencies {
minecraft("com.mojang:minecraft:${properties["minecraft_version"]}")
mappings("net.fabricmc:yarn:${properties["yarn_mappings"]}:v2")
// mappings {
// loom.layered {
// mappings("org.quiltmc:quilt-mappings:${properties["minecraft_version"]}+build.${properties["quilt_mappings_version"]}:intermediary-v2")
// officialMojangMappings()
// parchment("org.parchmentmc.data:parchment-${properties["parchment_version"]}@zip")
// }
// }
modImplementation("net.fabricmc:fabric-loader:${properties["loader_version"]}")
modImplementation("net.fabricmc:fabric-language-kotlin:${properties["fabric_kotlin_version"]}")
modImplementation("net.fabricmc.fabric-api:fabric-api:${properties["fabric_api_version"]}")
include("io.wispforest:owo-sentinel:${properties["owo_version"]}")
modImplementation("io.wispforest:endec:${properties["endec_version"]}")!!.let(::include)
modImplementation("io.wispforest.endec:netty:${properties["endec_netty_version"]}")!!.let(::include)
modImplementation("com.terraformersmc:modmenu:${properties["modmenu_version"]}") {
exclude("net.fabricmc.fabric-api")
}
annotationProcessor("io.github.llamalad7:mixinextras-fabric:${properties["mixinextras_version"]}")?.let {
implementation(it)
include(it)
}
modImplementation("io.wispforest:owo-lib:${properties["owo_version"]}")
implementation("com.google.devtools.ksp:symbol-processing-api:${properties["ksp_version"]}")
implementation("com.squareup:kotlinpoet-ksp:${properties["kotlinpoet_version"]}")
ksp("dev.kosmx.kowoconfig:ksp-owo-config:${properties["ksp_owo_config_version"]}")
}
tasks {
processResources {
inputs.property("version", project.version)
filesMatching("fabric.mod.json") {
expand("version" to project.version)
}
}
jar {
from("LICENSE")
}
java {
withSourcesJar()
}
publishing {
publications {
create<MavenPublication>("mavenJava") {
artifact(remapJar) {
builtBy(remapJar)
}
artifact(kotlinSourcesJar) {
builtBy(remapSourcesJar)
}
}
}
repositories {}
}
}