blob: f725a17cc6f705a19c3f9383579b75da19bc5051 (
plain)
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
|
plugins {
alias(libs.plugins.architectury.loom)
}
base {
archivesName.set("yet-another-config-lib")
}
architectury {
val enabledLoaders = rootProject.properties["loaders"].toString().split(",").map { it.trim() }
common(enabledLoaders)
}
loom {
silentMojangMappingsLicense()
accessWidenerPath.set(file("src/main/resources/yacl.accesswidener"))
}
dependencies {
minecraft(libs.minecraft)
mappings(loom.layered {
val qm = libs.versions.quilt.mappings.get()
if (qm != "0")
mappings("org.quiltmc:quilt-mappings:${libs.versions.minecraft.get()}+build.${libs.versions.quilt.mappings.get()}:intermediary-v2")
officialMojangMappings()
})
modImplementation(libs.fabric.loader)
}
java {
withSourcesJar()
}
tasks {
remapJar {
archiveClassifier.set(null as String?)
from(rootProject.file("LICENSE"))
}
}
publishing {
publications {
create<MavenPublication>("common") {
groupId = "dev.isxander.yacl"
artifactId = "yet-another-config-lib-common"
from(components["java"])
}
}
}
tasks.findByPath("publishCommonPublicationToReleasesRepository")?.let {
rootProject.tasks["releaseMod"].dependsOn(it)
}
|