forked from Ladysnake/Effective
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
145 lines (114 loc) · 3.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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
plugins {
alias libs.plugins.forge.loom
}
version = project.mod_version;
group = project.maven_group;
base {
archivesName = project.archives_base_name
}
chenille {
configurePublishing {
withLadysnakeMaven()
withGithubRelease()
withModrinthRelease()
}
}
loom {
accessWidenerPath = file("src/client/resources/effective.accesswidener")
splitEnvironmentSourceSets()
mods {
"effective" {
sourceSet sourceSets.main
sourceSet sourceSets.client
}
}
}
repositories {
// Modrinth
maven { url "https://api.modrinth.com/maven" }
// Veil
maven { url "https://maven.blamejared.com/" }
// Mod Menu
maven { url "https://maven.terraformersmc.com/releases/" }
// CCA
maven {
name = 'Ladysnake Mods'
url = 'https://maven.ladysnake.org/releases'
}
// Portinglib (for Lodestone Fabric)
maven { url "https://mvn.devos.one/snapshots/" }
maven { url "https://mvn.devos.one/releases/" }
// Reach entity attributes (for Portinglib, I am going to cry)
maven {
url "https://maven.jamieswhiteshirt.com/libs-release"
content {
includeGroup "com.jamieswhiteshirt"
}
}
maven {
name "modrinth"
url "https://api.modrinth.com/maven"
content {
includeGroup('maven.modrinth')
}
}
maven { url 'https://masa.dy.fi/maven' }
// mialee misc
maven { url "https://maven.willbl.dev/releases" }
maven {
url "https://cursemaven.com"
}
}
dependencies {
minecraft libs.minecraft
forge libs.forge
mappings loom.officialMojangMappings()
// Mod Menu
modCompileOnly "com.terraformersmc:modmenu:${mod_menu_version}"
modRuntimeOnly "com.terraformersmc:modmenu:${mod_menu_version}"
// CCA
modImplementation "dev.onyxstudios.cardinal-components-api:cardinal-components-base:${project.cca_version}"
// Adds a dependency on a specific module
modImplementation "dev.onyxstudios.cardinal-components-api:cardinal-components-world:${project.cca_version}"
modImplementation "dev.onyxstudios.cardinal-components-api:cardinal-components-entity:${project.cca_version}"
// Includes Cardinal Components API as a Jar-in-Jar dependency (optional)
include "dev.onyxstudios.cardinal-components-api:cardinal-components-base:${project.cca_version}"
include "dev.onyxstudios.cardinal-components-api:cardinal-components-world:${project.cca_version}"
include "dev.onyxstudios.cardinal-components-api:cardinal-components-entity:${project.cca_version}"
// midnightlib
modImplementation "maven.modrinth:midnightlib:${project.midnightlib_version}"
include "maven.modrinth:midnightlib:${project.midnightlib_version}"
// satin
// modImplementation(libs.satin) {
// exclude group: 'net.fabricmc'
// }
// include(libs.satin)
// lodestone
modImplementation "team.lodestar.lodestone:lodestone:${project.lodestone_version}"
include "team.lodestar.lodestone:lodestone:${project.lodestone_version}"
for (String module in portinglib_modules.split(",")) {
include "io.github.fabricators_of_create.Porting-Lib:$module:${project.portinglib_version}"
modImplementation "io.github.fabricators_of_create.Porting-Lib:$module:${project.portinglib_version}"
}
// iris and sodium
modImplementation(libs.sodium)
modImplementation(libs.iris)
runtimeOnly(libs.jcpp)
implementation(libs.glslTransformer)
}
processResources {
inputs.property 'version', version
filesMatching('quilt.mod.json') {
expand "version": version
}
}
java {
withSourcesJar()
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
jar {
from("LICENSE") {
rename { "${it}_${project.base.archivesName.get()}"}
}
}