forked from huskcasaca/effortless
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
60 lines (49 loc) · 1.26 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
import java.util.*
@Suppress("DSL_SCOPE_VIOLATION")
plugins {
alias(libs.plugins.loom)
}
version = "1.8.1"
group = "dev.huskcasaca"
base {
archivesName.set("effortless-fabric")
}
repositories {
maven("https://maven.shedaniel.me/") { name = "shedaniel" }
maven("https://maven.terraformersmc.com/releases/") { name = "TerraformersMC" }
}
dependencies {
minecraft(libs.minecraft)
mappings(loom.officialMojangMappings())
modImplementation(libs.fabric.loader)
modImplementation(libs.fabric.api)
modImplementation(libs.modmenu) { isTransitive = false }
modImplementation(libs.cloth.config)
implementation(libs.findbugs)
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
withSourcesJar()
}
loom {
accessWidenerPath.value {
file("src/main/resources/effortless.accesswidener")
}
}
tasks {
processResources {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
from("src/main/resources")
filesMatching("fabric.mod.json") {
expand(project.properties)
}
}
remapJar {
archiveClassifier.set(libs.versions.minecraft.get())
}
remapSourcesJar {
archiveClassifier.set(libs.versions.minecraft.get() + "-source")
}
}