-
Notifications
You must be signed in to change notification settings - Fork 64
/
build.gradle
95 lines (82 loc) · 2.6 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
buildscript {
repositories {
jcenter()
maven { url 'https://repo.spongepowered.org/maven' }
maven { url 'https://jitpack.io' }
maven { url 'https://files.minecraftforge.net/maven' }
}
dependencies {
classpath 'com.github.Irtimaled:ForgeGradle:2.6-SNAPSHOT'
classpath 'org.spongepowered:mixingradle:0.6-SNAPSHOT'
}
}
apply plugin: 'net.minecraftforge.gradle.tweaker-client'
apply plugin: 'java'
apply plugin: 'org.spongepowered.mixin'
group 'com.irtimaled'
version project.buildVersion + '-' + project.mcVersion
archivesBaseName = 'BBOutlineReloaded'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
maven { url 'https://libraries.minecraft.net/' }
maven { url 'https://repo.spongepowered.org/maven/' }
maven { url 'https://jitpack.io' }
}
dependencies {
implementation('org.spongepowered:mixin:0.8') { transitive = false }
implementation('net.minecraft:launchwrapper:1.12') { transitive = false }
implementation 'org.ow2.asm:asm-tree:6.2'
implementation 'org.ow2.asm:asm-commons:6.2'
implementation "org.ow2.asm:asm-util:6.2"
}
minecraft {
version = project.mcVersion
mappings = 'snapshot_20190624'
runDir = 'run'
tweakClass = 'com.irtimaled.bbor.launch.ClientTweaker'
makeObfSourceJar = false
clientJvmArgs = ['-XstartOnFirstThread']
}
mixin {
defaultObfuscationEnv notch
add sourceSets.main, 'mixins.bbor.refmap.json'
}
sourceSets {
main
debug {
compileClasspath += main.compileClasspath
}
}
processResources {
filesMatching('profile.json') {
expand([
'version' : project.version,
'mcVersion' : project.mcVersion,
'tweakClass' : project.minecraft.tweakClass,
'formattedTime': new Date().format("yyyy-MM-dd'T'HH:mm:ss'-08:00'")
])
}
inputs.property "version", project.version
inputs.property "mcVersion", project.mcVersion
}
jar {
finalizedBy reobfJar
manifest {
attributes([
"Main-Class": "com.irtimaled.bbor.Main",
"Specification-Title": "bbor",
"Specification-Vendor": "Irtimaled",
"Specification-Version": "1", // We are version 1 of ourselves
"Implementation-Title": project.name,
"Implementation-Version": "${version}",
"Implementation-Vendor": "Irtimaled",
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
])
}
classifier = 'vanilla'
}
artifacts {
archives jar
}