generated from FabricMC/fabric-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle.kts
74 lines (59 loc) · 1.8 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
plugins {
id("fabric-loom") version "0.10-SNAPSHOT"
id("org.cadixdev.licenser") version "0.5.0"
}
base.archivesBaseName = "lint"
group = "me.hydos"
version = "2.0.0-SNAPSHOT"
repositories {
maven {
name = "Devan-Kerman/Devan-Repo"
url = uri("https://raw.githubusercontent.com/Devan-Kerman/Devan-Repo/master/")
}
maven {
url = uri("https://repo.repsy.io/mvn/fadookie/particleman/")
}
flatDir {
dirs("local")
}
}
// Configurations
val modImplementationAndInclude by configurations.register("modImplementationAndInclude")
dependencies {
minecraft("net.minecraft", "minecraft", "1.17.1")
mappings("net.fabricmc", "yarn", "1.17.1+build.61", classifier = "v2")
modImplementation("net.fabricmc", "fabric-loader", "0.11.7")
modImplementation("net.fabricmc.fabric-api", "fabric-api", "0.40.1+1.17")
// Geckolib manually
modImplementation("local", "geckolib-fabric-1.17", "3.0.15")
implementation("local", "geckolib-core", "1.0.4a")
implementation("com.fasterxml.jackson.core", "jackson-databind", "2.9.0")
implementation("com.fasterxml.jackson.datatype", "jackson-datatype-jsr310", "2.9.0")
implementation("com.eliotlash.molang", "molang", "SNAPSHOT.12")
implementation("com.eliotlash.mclib", "mclib", "SNAPSHOT.12")
include(modImplementation("net.devtech", "arrp", "0.+"))
}
java {
sourceCompatibility = JavaVersion.VERSION_16
targetCompatibility = JavaVersion.VERSION_16
}
minecraft {
accessWidenerPath.set(file("src/main/resources/lint.aw"))
}
license {
header = file("HEADER")
include("**/*.java")
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
options.release.set(16)
}
tasks.withType<AbstractArchiveTask> {
from(file("LICENSE"))
from(file("LICENSE.LESSER"))
}
tasks.processResources {
filesMatching("fabric.mod.json") {
expand("version" to project.version)
}
}