-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
109 lines (85 loc) · 2.48 KB
/
build.gradle
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
102
103
104
105
106
107
108
109
//file:noinspection ALL
plugins {
id "fabric-loom" version "1.6-SNAPSHOT"
id "maven-publish"
id "org.jetbrains.kotlin.jvm"
}
version = mod_version
group = maven_group
base {
archivesName = archives_base_name
}
repositories {
maven {
name = "Terraformers"
url = "https://maven.terraformersmc.com/releases/"
}
maven {
name = "Jitpack"
url = "https://jitpack.io/"
}
maven {
name = "Geckolib"
url = "https://dl.cloudsmith.io/public/geckolib3/geckolib/maven/"
}
maven {
name = "JamiesWhiteShirt"
url = "https://maven.jamieswhiteshirt.com/libs-release/"
}
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven/"
}
maven {
name = "Debug Utils (GitLab)"
url = "https://gitlab.com/api/v4/projects/21830712/packages/maven/"
}
maven {
name = "Minecraft Forge"
url = "https://maven.minecraftforge.net/"
}
}
fabricApi {
configureDataGeneration {
outputDirectory = file("src/generated/resources")
}
}
dependencies {
minecraft "com.mojang:minecraft:$minecraft_version"
mappings "net.fabricmc:yarn:$minecraft_version+build.$yarn_build:v2"
modImplementation "net.fabricmc:fabric-loader:$loader_version"
modImplementation "net.fabricmc.fabric-api:fabric-api:$fabric_version"
modImplementation "net.fabricmc:fabric-language-kotlin:$fabric_kotlin_version+kotlin.$kotlin_version"
modImplementation "software.bernie.geckolib:geckolib-fabric-$geckolib_version"
modImplementation "com.terraformersmc:modmenu:$mod_menu_version"
modRuntimeOnly "io.github.flemmli97:debugutils:$minecraft_version-$debug_utils_version-fabric"
modRuntimeOnly "maven.modrinth:carpet:$carpet_version"
include modImplementation("com.jamieswhiteshirt:reach-entity-attributes:$reach_entity_attributes_version")
}
loom {
splitEnvironmentSourceSets()
accessWidenerPath = file("src/main/resources/${mod_id}.accesswidener")
mods {
mod_id {
sourceSet sourceSets.main
sourceSet sourceSets.client
}
}
}
processResources {
inputs.property "version", version
filesMatching("fabric.mod.json") {
expand "version": version
}
}
java {
withSourcesJar()
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlin {
jvmToolchain(17)
}
jar {
from("LICENSE", "LICENSE_ASSETS")
}