-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
88 lines (77 loc) · 2.99 KB
/
Copy pathbuild.gradle
File metadata and controls
88 lines (77 loc) · 2.99 KB
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
plugins {
id 'com.unascribed.nilgradle' version '1.4.4'
}
// You can change this to be higher if you like. NilLoader itself is compiled
// for Java 8 for compatibility with older versions.
sourceCompatibility = 8
targetCompatibility = 8
group = 'net.scoobis'
archivesBaseName = 'NilMenu'
version = '1.0'
repositories {
maven {
// NilLoader and NilGradle are published here
url 'https://repo.sleeping.town'
content {
includeGroup 'com.unascribed'
}
}
maven {
// If you wish to use Yarn or Intermediary
url 'https://maven.fabricmc.net'
content {
includeGroup 'net.fabricmc'
}
}
maven {
// If you wish to use mcp_config or compile against Minecraft Forge
url 'https://maven.minecraftforge.net'
content {
includeGroup 'net.minecraftforge'
includeGroup 'de.oceanlabs.mcp'
}
}
}
nil {
id "nilmenu"
// Set this to false for a smaller JAR that can't be run as a standalone Java agent
standalone false
}
dependencies {
loader 'com.unascribed:nilloader:1.3.4'
// Any version available in the vanilla launcher can be put here, or...
game nil.minecraft('1.4.7', 'client')
// ...you can use any version that's been archived in the IA by OmniArchive
//game nil.minecraftArchive('alpha', 'a1.1.1')
// Or, you can use something that isn't Minecraft with a normal Gradle dependency.
// You can specify additional dependencies using the "mod" configuration to
// add things that will be remapped:
//mod 'net.minecraftforge:forge:1.4.7-6.6.2.534:universal@zip
// Though, for Forge, you should use jarmod instead so it properly overwrites game classes:
//jarmod 'net.minecraftforge:forge:1.4.7-6.6.2.534:universal@zip
// If you have a dependency named after your via mappings (e.g. SRG/Intermediary)
// rather than raw obf names, then you can use modVia:
//modVia 'dev.emi:emi:0.3.3+1.4'
// Normal libraries can be added with the usual "implementation" configuration.
// NilGradle doesn't understand transitive game dependencies, so you will likely want to
// add LWJGL, Gson, Guava, or whatever the thing you're modifying depends on.
}
mappings {
// You can use any mappings in SRG, Proguard, or Tiny format here. There's
// special support for picking apart MCP release ZIPs as well, which is used
// here to provide MCP names for 1.4.7. (No MCPBot support yet.)
work nil.mcpArchive('1.4.7', '726a')
// If your mappings use some form of intermediate, you'll need to specify it
// as a "via" mapping.
// For example:
// work 'net.fabricmc:yarn:1.18.2+build.3:v2'
// via 'net.fabricmc:intermediary:1.18.2:v2'
// You can use official Mojang mappings like so:
// work nil.mojmap('1.18.2', 'client')
// You can add as many additional "target" mappings as you like here. They
// have to resolve to the same "base" as your work/via mapping, and you can
// select which one you want at runtime.
// For example, to use the SRGs for the same MCP we pulled in above:
// target nil.mcpArchiveSrg('1.4.7', '726a')
// (1.4.7 Forge doesn't use SRGs, but you'll need this for 1.5, 1.6, 1.7, etc.)
}