generated from GTModpackTeam/Buildscripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dependencies.gradle
162 lines (141 loc) · 9.57 KB
/
dependencies.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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
//file:noinspection DependencyNotationArgument
// TODO remove when fixed in RFG ^
/*
* Add your dependencies here. Supported configurations:
* - api("group:name:version:classifier"): if you use the types from this dependency in the public API of this mod
* Available at runtime and compiletime for mods depending on this mod
* - implementation("g:n:v:c"): if you need this for internal implementation details of the mod, but none of it is visible via the public API
* Available at runtime but not compiletime for mods depending on this mod
* - compileOnly("g:n:v:c"): if the mod you're building doesn't need this dependency during runtime at all, e.g. for optional mods
* Not available at all for mods depending on this mod, only visible at compiletime for this mod
* - compileOnlyApi("g:n:v:c"): like compileOnly, but also visible at compiletime for mods depending on this mod
* Available at compiletime but not runtime for mods depending on this mod
* - runtimeOnlyNonPublishable("g:n:v:c"): if you want to include a mod in this mod's runClient/runServer runs, but not publish it as a dependency
* Not available at all for mods depending on this mod, only visible at runtime for this mod
* - devOnlyNonPublishable("g:n:v:c"): a combination of runtimeOnlyNonPublishable and compileOnly for dependencies present at both compiletime and runtime,
* but not published as Maven dependencies - useful for RFG-deobfuscated dependencies or local testing
* - runtimeOnly("g:n:v:c"): if you don't need this at compile time, but want it to be present at runtime
* Available at runtime for mods depending on this mod
* - annotationProcessor("g:n:v:c"): mostly for java compiler plugins, if you know you need this, use it, otherwise don't worry
* - testCONFIG("g:n:v:c") - replace CONFIG by one of the above (except api), same as above but for the test sources instead of main
*
* - shadowImplementation("g:n:v:c"): effectively the same as API, but the dependency is included in your jar under a renamed package name
* Requires you to enable usesShadowedDependencies in gradle.properties
* For more info, see https://github.com/GTModpackTeam/Buildscripts/blob/master/docs/shadow.md
*
* You can exclude transitive dependencies (dependencies of the chosen dependency) by appending { transitive = false } if needed,
* but use this sparingly as it can break using your mod as another mod's dependency if you're not careful.
*
* To depend on obfuscated jars you can use `devOnlyNonPublishable(rfg.deobf("dep:spec:1.2.3"))` to fetch an obfuscated jar from maven,
* or `devOnlyNonPublishable(rfg.deobf(project.files("libs/my-mod-jar.jar")))` to use a file.
*
* To add a mod with CurseMaven, replace '("g:n:v:c")' in the above with 'rfg.deobf("curse.maven:project_slug-project_id:file_id")'
* Example: devOnlyNonPublishable(rfg.deobf("curse.maven:top-245211:2667280"))
*
* Gradle names for some of the configuration can be misleading, compileOnlyApi and runtimeOnly both get published as dependencies in Maven, but compileOnly does not.
* The buildscript adds runtimeOnlyNonPublishable to also have a runtime dependency that's not published.
*
* For more details, see https://docs.gradle.org/8.4/userguide/java_library_plugin.html#sec:java_library_configurations_graph
*/
dependencies {
// Published dependencies
api("codechicken:codechickenlib:3.2.3.358") // CCL 3.2.3.358
api("com.cleanroommc:groovyscript:1.1.2") { transitive = false } // GrS 1.1.2
api("CraftTweaker2:CraftTweaker2-MC1120-Main:1.12-4.1.20.700") // CrT 4.1.20.700
api("appeng:ae2-uel:v0.56.4") { transitive = false } // AE2 0.56.4(IAEWrench access error)
api rfg.deobf("curse.maven:ctm-267602:2915363") // CTM 1.0.2.31
// Hard Dependencies
devOnlyNonPublishable(rfg.deobf("curse.maven:gregtech-ce-unofficial-557242:5519022")) // CEu 2.8.10
// Debug Thaumcraft
if (project.debug_all.toBoolean() || project.debug_thaumcraft.toBoolean()) {
runtimeOnlyNonPublishable rfg.deobf("curse.maven:baubles-227083:2518667") // Baubles 1.5.2
runtimeOnlyNonPublishable rfg.deobf("curse.maven:thaumcraft-223628:2629023") // Thaumcraft 6.1.BETA26
}
// Debug Forestry
compileOnly rfg.deobf("curse.maven:forestry-59751:2684780") // Forestry 5.8.2.387
compileOnly rfg.deobf("curse.maven:binnies-mods-patched-899182:5492997") // Binnie's Mods Patched 2.5.1.212
if (project.debug_all.toBoolean() || project.debug_forestry.toBoolean()) {
runtimeOnlyNonPublishable rfg.deobf("curse.maven:forestry-59751:2684780") // Forestry 5.8.2.387
// Debug Binnies
if (project.debug_all.toBoolean() || project.debug_binnies.toBoolean()) {
runtimeOnlyNonPublishable rfg.deobf("curse.maven:binnies-mods-patched-899182:5492997") // Binnie's Mods Patched 2.5.1.212
}
}
// Debug GregTech Food Option
if (project.debug_all.toBoolean() || project.debug_gtfo.toBoolean()) {
runtimeOnlyNonPublishable rfg.deobf("curse.maven:gregtech-food-option-477021:5487400") // GTFO 1.11.2.1
}
// Debug Advanced Rocketry
if (project.debug_all.toBoolean() || project.debug_advrocket.toBoolean()) {
runtimeOnlyNonPublishable rfg.deobf("curse.maven:libvulpes-236541:3801015") // LibVulpes 0.4.2-25
runtimeOnlyNonPublishable rfg.deobf("curse.maven:advanced-rocketry-236542:4671856") // Advanced Rocketry 2.0.0-17
}
// Debug Project: Vibrant Journeys
if (project.debug_all.toBoolean() || project.debug_pvj.toBoolean()) {
runtimeOnlyNonPublishable rfg.deobf("curse.maven:project-vibrant-journeys-300297:2775566") // Project: Vibrant Journeys 1.6.4
}
// Debug Plants
if (project.debug_all.toBoolean() || project.debug_plants.toBoolean()) {
runtimeOnlyNonPublishable rfg.deobf("curse.maven:placebo-283644:4629597") // Placebo 1.6.1
runtimeOnlyNonPublishable rfg.deobf("curse.maven:plants-257229:2697165") // Plants 2.10.7
}
// Debug Extra Utilities
if (project.debug_all.toBoolean() || project.debug_exu.toBoolean()) {
runtimeOnlyNonPublishable rfg.deobf("curse.maven:extra-utilities-225561:2678374") // Extra Utilities 1.9.9
}
// Debug Integrated Dynamics
if (project.debug_all.toBoolean() || project.debug_ids.toBoolean()) {
runtimeOnlyNonPublishable rfg.deobf("curse.maven:cyclops-core-232758:3159497") // Cyclops Core 1.6.7
runtimeOnlyNonPublishable rfg.deobf("curse.maven:common-capabilities-247007:3053017") // Common Capabilities 2.4.8
runtimeOnlyNonPublishable rfg.deobf("curse.maven:integrated-dynamics-236307:3159505") // Integrated Dynamics 1.1.11
}
// Debug Random Things
if (project.debug_all.toBoolean() || project.debug_rthings.toBoolean()) {
runtimeOnlyNonPublishable rfg.deobf("curse.maven:random-things-59816:2905241") // Random Things 4.2.7.4
}
// Debug Rustic
if (project.debug_all.toBoolean() || project.debug_rustic.toBoolean()) {
runtimeOnlyNonPublishable rfg.deobf("curse.maven:rustic-256141:3107974") // Rustic 1.1.7
}
// Debug Mystical World
if (project.debug_all.toBoolean() || project.debug_mworld.toBoolean()) {
runtimeOnlyNonPublishable rfg.deobf("curse.maven:patchouli-306770:3162874") // Patchouli 1.0-23.6
runtimeOnlyNonPublishable rfg.deobf("curse.maven:mysticallib-277064:3483816") // MysticalLib 1.13.0
runtimeOnlyNonPublishable rfg.deobf("curse.maven:mystical-world-282940:3460961") // Mystical World 1.11.0
if (project.debug_all.toBoolean() || project.debug_roots.toBoolean()) {
runtimeOnlyNonPublishable rfg.deobf("curse.maven:roots-246183:5193525") // Roots 3.1.9.2
}
}
// Debug Biomes O' Plenty
if (project.debug_bop.toBoolean() || project.debug_all.toBoolean()) {
runtimeOnlyNonPublishable rfg.deobf("curse.maven:biomes-o-plenty-220318:2842510") // Biomes O' Plenty 7.0.1.2444
}
// Debug Wizardry
if (project.debug_all.toBoolean() || project.debug_wizardry.toBoolean()) {
runtimeOnlyNonPublishable rfg.deobf("curse.maven:librarianlib-252910:3041340") // LibrarianLib 4.22
runtimeOnlyNonPublishable rfg.deobf("curse.maven:shadowfacts-forgelin-248453:2785465") // Forgelin 1.8.4
runtimeOnlyNonPublishable rfg.deobf("curse.maven:wizardry-mod-278155:5160012") // Wizardry 0.11.3
}
// Debug Traverse Reforged
if (project.debug_all.toBoolean() || project.debug_traverse.toBoolean()) {
runtimeOnlyNonPublishable rfg.deobf("curse.maven:traverse-reforged-267769:2613657") // Traverse Reforged 1.6.0
}
// Debug Nether Update Backport
if (project.debug_all.toBoolean() || project.debug_nub.toBoolean()) {
runtimeOnlyNonPublishable rfg.deobf("curse.maven:nether-update-backport-384529:3140835") // Nether Update Backport 1.0.1
}
// Debug The Twilight Forest
if (project.debug_all.toBoolean() || project.debug_twilight.toBoolean()) {
runtimeOnlyNonPublishable rfg.deobf("curse.maven:the-twilight-forest-227639:3051450") // The Twilight Forest 3.11.1021
}
// Debug Botania
if (project.debug_all.toBoolean() || project.debug_botania.toBoolean()) {
runtimeOnlyNonPublishable rfg.deobf("curse.maven:baubles-227083:2518667") // Baubles 1.5.2
runtimeOnlyNonPublishable rfg.deobf("curse.maven:botania-225643:3330934") // Botania r1.10-364.4
}
// Debug Natura
if (project.debug_all.toBoolean() || project.debug_natura.toBoolean()) {
runtimeOnlyNonPublishable rfg.deobf("curse.maven:mantle-74924:2713386") // Mantle 1.3.3.55
runtimeOnlyNonPublishable rfg.deobf("curse.maven:natura-74120:2711439") // Natura 4.3.2.69
}
}