forked from AlexModGuy/Ice_and_Fire
-
Notifications
You must be signed in to change notification settings - Fork 7
/
dependencies.gradle
103 lines (92 loc) · 3.45 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
apply from: 'gradle/scripts/helpers.gradle'
// Set to true to test in runtime
def debug_jei = true
def debug_thaumcraft = false
def debug_tinkers = false
def debug_top = true
def debug_waila = false
// All deps here are taken from CurseMaven
final def mod_dependencies = [
'llibrary-243298:2504999': [true],
'hwyla-253449:2568751': [debug_waila],
'jei-238222:5101347': [debug_jei],
'mantle-74924:2713386': [debug_tinkers],
'tconstruct-74072:2902483': [debug_tinkers],
'thaumcraft-223628:2629023': [debug_thaumcraft],
'theoneprobe-245211:2667280': [debug_top],
]
final def runtime_dependencies = [
'baubles-227083:2518667': [debug_thaumcraft],
]
repositories {
// Other repositories described by default:
// CleanroomMC: https://maven.cleanroommc.com
exclusiveContent {
forRepository {
maven {
name 'CurseMaven'
url 'https://cursemaven.com'
}
}
filter {
includeGroup 'curse.maven'
}
}
exclusiveContent {
forRepository {
maven {
name 'Modrinth'
url 'https://api.modrinth.com/maven'
}
}
filter {
includeGroup 'maven.modrinth'
}
}
maven {
url "https://maven.blamejared.com/"
}
mavenLocal() // Must be last for caching to work
}
dependencies {
// Example - Dependency descriptor:
// 'com.google.code.gson:gson:2.8.6' << group: com.google.code.gson, name:gson, version:2.8.6
// 'group:name:version:classifier' where classifier is optional
// Example - Deobfuscating dependencies:
// rfg.deobf('curse.maven:had-enough-items-557549:4543375')
// By wrapping a dependency descriptor in rfg.deobf() method call, the dependency is queued for deobfuscation
// When deobfuscating, RFG respects the mapping_channel + mapping_version stated in gradle.properties
// Example - CurseMaven dependencies:
// 'curse.maven:had-enough-items-557549:4543375' << had-enough-items = project slug, 557549 = project id, 4543375 = file id
// Full documentation: https://cursemaven.com/
// Example - Modrinth dependencies:
// 'maven.modrinth:jei:4.16.1.1000' << jei = project name, 4.16.1.1000 = file version
// Full documentation: https://docs.modrinth.com/docs/tutorials/maven/
// Common dependency types (configuration):
// implementation = dependency available at both compile time and runtime
// runtimeOnly = runtime dependency
// compileOnly = compile time dependency
// annotationProcessor = annotation processing dependencies
// Transitive dependencies:
// (Dependencies that your dependency depends on)
// If you wish to exclude transitive dependencies in the described dependencies
// Use a closure as such:
// implementation ('com.google.code.gson:gson:2.8.6') {
// transitive = false
// }
mod_dependencies.entrySet().forEach {
def mod = rfg.deobf('curse.maven:' + it.key)
compileOnly mod
if (it.value.any { it.toBoolean() }) {
runtimeOnly mod
}
}
runtime_dependencies.entrySet().forEach {
if (it.value.any { it.toBoolean() }) {
def mod = rfg.deobf('curse.maven:' + it.key)
runtimeOnly mod
}
}
// Specify any non-CurseMaven extra deps below
compileOnly rfg.deobf('CraftTweaker2:CraftTweaker2-MC1120-Main:1.12-4.1.20.700')
}