forked from HyperCubeMC/Modern-Minecraft-Decompiler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
69 lines (64 loc) · 1.63 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
buildscript {
repositories {
mavenLocal()
maven { url = 'https://files.minecraftforge.net/maven' }
jcenter()
mavenCentral()
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:3.0.143'
}
}
apply plugin: 'eclipse'
group = 'Modern-Minecraft-Decompiler'
version = '1.0.0'
project(':mcp') {
apply plugin: 'net.minecraftforge.gradle.mcp'
mcp {
//From MinecraftForge build.gradle
config = '1.14.4-20190829.143755'
pipeline = 'client'
}
}
evaluationDependsOn(':mcp')
apply plugin: 'eclipse'
apply plugin: 'net.minecraftforge.gradle.patcher'
repositories {
mavenLocal()
maven { url = 'https://files.minecraftforge.net/maven' }
jcenter()
mavenCentral()
}
patcher {
parent = project(':mcp')
patchedSrc = file('src/main/java')
mappings channel: 'snapshot', version: '20190920-1.14.3'
mcVersion = '1.14.4'
repositories {
mavenLocal()
maven { url = 'https://files.minecraftforge.net/maven' }
jcenter()
mavenCentral()
}
}
task runclient(type: JavaExec) {
group = "MCP"
description = "Runs the client"
doFirst {
mkdir 'runclient'
}
classpath sourceSets.main.runtimeClasspath
args = ['--accessToken', '0', '--version', '1.14', '--assetsDir', downloadAssets.output, '--assetIndex', '1.14']
main 'net.minecraft.client.main.Main'
workingDir 'runclient'
}
task setup() {
group = "MCP"
description = "Setups the dev workspace"
dependsOn ':extractMapped'
mkdir 'run/assets'
copy {
from downloadAssets.output.path
into 'run/assets'
}
}