forked from Thaumic-Tinkerer/ThaumicTinkerer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
155 lines (127 loc) · 5.68 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
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
buildscript {
repositories {
maven { url = 'https://maven.minecraftforge.net/' }
jcenter()
mavenCentral()
maven {
name 'FancyGradle'
url 'https://gitlab.com/api/v4/projects/26758973/packages/maven'
}
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true
classpath group: 'wtf.gofancy.fancygradle', name: 'wtf.gofancy.fancygradle.gradle.plugin', version: '1.1.+'
}
}
apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'wtf.gofancy.fancygradle'
fancyGradle {
patches {
resources
coremods
asm
codeChickenLib
}
}
sourceSets {
test {
resources.setSrcDirs([])
}
}
//Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
repositories {
mavenCentral()
maven {
// location of the maven that hosts JEI files
name = "Progwml6 maven"
url = "https://dvs1.progwml6.com/files/maven/"
}
maven {
// location of a maven mirror for JEI files, as a fallback
name = "ModMaven"
url = "https://modmaven.k-4u.nl"
}
maven {
url "https://cursemaven.com"
}
}
version = "1.12.2-5.1"
group = "${package_group}" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "${mod_name}"
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
minecraft {
mappings channel: 'stable', version: '39-1.12'
runs {
client {
workingDirectory project.file('run')
// Recommended logging data for a userdev environment
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
// Recommended logging level for the console
property 'forge.logging.console.level', 'debug'
}
server {
// Recommended logging data for a userdev environment
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
// Recommended logging level for the console
property 'forge.logging.console.level', 'debug'
}
}
}
dependencies {
implementation 'org.jetbrains:annotations:20.1.0'
minecraft 'net.minecraftforge:forge:1.12.2-14.23.5.2860'
implementation fg.deobf("curse.maven:jei-238222:3043174")
implementation fg.deobf("curse.maven:Hwyla-253449:2568751")
//implementation fg.deobf("curse.maven:opencomputers-223008:2828357")//li.cil.oc:OpenComputers:MC1.12.1-1.7.0.+"
implementation fg.deobf("curse.maven:actually-additions-228404:3117927")
implementation fg.deobf("curse.maven:hammerCore-247401:3611193")
implementation fg.deobf('curse.maven:thaumcraft-223628:2629023')
implementation fg.deobf('curse.maven:baubles-227083:2518667')
implementation fg.deobf("curse.maven:thaumic-additions-232564:3663195")
implementation fg.deobf("curse.maven:redstoneFlux-270789:2920436")
implementation fg.deobf("curse.maven:appeng-223794:2747063")
implementation fg.deobf("curse.maven:thaumic-energistics-223666:2915506")
implementation fg.deobf("curse.maven:mantle-74924:2713386")
implementation fg.deobf("curse.maven:TConstruct-74072:2809406")
implementation fg.deobf("curse.maven:botania-225643:3330934")
implementation fg.deobf("curse.maven:cyclops-core-232758:3159497")
implementation fg.deobf("curse.maven:evilcraft-74610:2811267")
implementation fg.deobf("curse.maven:theoneprobe-245211:2667280")//1.1x-1.4.4-55
implementation fg.deobf("curse.maven:thaumic-jei-285492:2705304")
// you may put jars on which you depend on in ./libs
// or you may define them like so..
//compile "some.group:artifact:version:classifier"
//compile "some.group:artifact:version"
// real examples
//compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env
//compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env
// the 'provided' configuration is for optional dependencies that exist at compile-time but might not at runtime.
//provided 'com.mod-buildcraft:buildcraft:6.0.8:dev'
// the deobf configurations: 'deobf' and 'deobfProvided' are the same as the normal compile and provided,
// except that these dependencies get remapped to your current MCP mappings
//deobf 'com.mod-buildcraft:buildcraft:6.0.8:dev'
//deobfProvided 'com.mod-buildcraft:buildcraft:6.0.8:dev'
// for more info...
// http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
// http://www.gradle.org/docs/current/userguide/dependency_management.html
}
jar {
manifest {
attributes([
"Specification-Title": "thaumictinkerer",
"Specification-Vendor": "Thaumic Tinkerer",
"Specification-Version": "1", // We are version 1 of ourselves
"Implementation-Title": project.name,
"Implementation-Version": "${version}",
"Implementation-Vendor" :"Thaumic Tinkerer",
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
])
}
}
// Example configuration to allow publishing using the maven-publish task
// This is the preferred method to reobfuscate your jar file
jar.finalizedBy('reobfJar')
// However if you are in a multi-project build, dev time needs unobfed jar files, so you can delay the obfuscation until publishing by doing
//publish.dependsOn('reobfJar')