generated from CottonMC/FabricStarter
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
executable file
·83 lines (70 loc) · 2.87 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
plugins {
id 'org.quiltmc.loom' version '0.12+'
id 'maven-publish'
}
def targetJavaVersion = 17
archivesBaseName = "${project.archives_base_name}"
group = "${project.maven_group}"
version = "${project.mod_version}+${project.minecraft_version}"
loom {
accessWidenerPath = file("src/main/resources/mycoturgy.accesswidener")
}
repositories {
maven {
url 'https://maven.quiltmc.org/repository/release'
content {
includeGroup 'org.quiltmc.quilted-fabric-api'
includeGroupByRegex 'org.quiltmc.qsl(.[a-z_]+)?'
}
}
mavenLocal()
maven { url "https://maven.ladysnake.org/releases" }
maven { url "https://maven.blamejared.com" }
maven {
name = "TerraformersMC"
url = "https://maven.terraformersmc.com/"
}
maven {
url 'https://repo.sleeping.town'
content {
includeGroup 'com.unascribed'
}
}
}
dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "org.quiltmc:quilt-mappings:${minecraft_version}+build.${project.qm_build}:intermediary-v2"
modImplementation "org.quiltmc:quilt-loader:${project.loader_version}"
modImplementation "org.quiltmc.quilted-fabric-api:quilted-fabric-api:${project.qfapi_version}-${project.minecraft_version}"
modImplementation "org.quiltmc.quilted-fabric-api:quilted-fabric-api-deprecated:${project.qfapi_version}-${project.minecraft_version}"
modImplementation include("dev.onyxstudios.cardinal-components-api:cardinal-components-base:${project.cardinal_version}") { transitive = false }
modImplementation include("dev.onyxstudios.cardinal-components-api:cardinal-components-chunk:${project.cardinal_version}") { transitive = false }
modImplementation include("dev.onyxstudios.cardinal-components-api:cardinal-components-item:${project.cardinal_version}") { transitive = false }
modImplementation include("dev.onyxstudios.cardinal-components-api:cardinal-components-entity:${project.cardinal_version}") { transitive = false }
modImplementation include("dev.emi:trinkets:${project.trinkets_version}") { transitive = false }
modImplementation include("vazkii.patchouli:Patchouli:${project.patchouli_version}") { exclude group: "net.fabricmc.fabric-api" exclude group: "net.fabricmc" }
modImplementation include("com.unascribed:lib39-core:${project.lib39_version}")
modImplementation include("com.unascribed:lib39-util:${project.lib39_version}")
modImplementation include("com.unascribed:lib39-waypoint:${project.lib39_version}")
modImplementation include("com.unascribed:lib39-weld:${project.lib39_version}")
}
processResources {
inputs.property "version", version
filesMatching('quilt.mod.json') {
expand "version": version
}
}
tasks.withType(JavaCompile).configureEach {
it.options.encoding = "UTF-8"
it.options.release = 17
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
withSourcesJar()
}
jar {
from("LICENSE") {
rename { "${it}_${archivesBaseName}" }
}
}