forked from JDKDigital/productive-bees
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
163 lines (145 loc) · 5.77 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
156
157
158
159
160
161
162
163
buildscript {
repositories {
maven { url = 'https://files.minecraftforge.net/maven' }
jcenter()
mavenCentral()
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true
}
}
apply plugin: 'net.minecraftforge.gradle'
// Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'maven-publish'
version = "${version}"
group = 'cy.jdkdigital.productivebees'
archivesBaseName = 'productivebees'
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
minecraft {
mappings channel: 'snapshot', version: mcp_mappings
accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
runs {
client {
workingDirectory project.file('run')
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
property 'forge.logging.console.level', 'debug'
mods {
productivebees {
source sourceSets.main
}
}
}
server {
workingDirectory project.file('run')
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
property 'forge.logging.console.level', 'debug'
mods {
productivebees {
source sourceSets.main
}
}
}
data {
workingDirectory project.file('run')
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
property 'forge.logging.console.level', 'debug'
args '--mod', 'productivebees', '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/')
environment 'target', 'fmluserdevdata'
mods {
productivebees {
source sourceSets.main
}
}
}
}
}
repositories {
flatDir {
dirs 'mods'
}
maven {
name = "JEI Maven"
url "http://dvs1.progwml6.com/files/maven"
}
maven {
name = "HWYLA"
url "http://maven.tehnut.info/"
}
maven {
url 'https://maven.blamejared.com'
}
maven { // TOP
name 'tterrag maven'
url "http://maven.tterrag.com/"
}
}
dependencies {
minecraft "net.minecraftforge:forge:${forgeversion}"
// compile against the JEI API but do not include it at runtime
compileOnly fg.deobf("mezz.jei:jei-${mcversion}:${jei_version}:api")
// at runtime, use the full JEI jar
runtimeOnly fg.deobf("mezz.jei:jei-${mcversion}:${jei_version}")
compileOnly fg.deobf ("mcjty.theoneprobe:TheOneProbe-${top_version}:api")
runtime fg.deobf ("mcjty.theoneprobe:TheOneProbe-${top_version}")
compileOnly fg.deobf("vazkii.patchouli:Patchouli:${patchouli_version}:api")
runtimeOnly fg.deobf("vazkii.patchouli:Patchouli:${patchouli_version}")
compile fg.deobf("mcp.mobius.waila:Hwyla:${hwyla_version}")
// implementation fg.deobf('mods:byg:1.0.11')
implementation fg.deobf('mods:Mekanism-1.15.2:9.10.9.422')
implementation fg.deobf('mods:cofh_core-1.15.2:1.0.2')
implementation fg.deobf('mods:thermal-1.15.2:1.0.2')
implementation fg.deobf('mods:thermal_expansion-1.15.2:1.0.2')
// implementation fg.deobf('mods:allthemodium-1.0.4-1.15.2:31.2.36')
implementation fg.deobf('mods:curios-FORGE-1.15.2:2.0.2.6')
// implementation fg.deobf('mods:Patchouli-1.15.2:1.2-35')
implementation fg.deobf('mods:Botania-r1.15:388')
implementation fg.deobf('mods:Lollipop-1.15.2:1.0.16')
implementation fg.deobf('mods:Powah-1.15.2:1.1.14')
implementation fg.deobf('mods:appliedenergistics2-1.15:7.0.2')
implementation fg.deobf('mods:SilentLib-1.15.2:4.6.6+59')
implementation fg.deobf('mods:SilentGems-1.15.2:3.6.2+98')
implementation fg.deobf('mods:SilentMechanisms-1.15.2:0.8.0+59')
implementation fg.deobf('mods:Abnormals-Core-1.15.2:1.0.6')
implementation fg.deobf('mods:Buzzier-Bees-1.15.2:1.5.2')
// implementation fg.deobf('mods:Tropicraft-8.1.0:beta+34')
// implementation fg.deobf('mods:simplefarming-1.15.2:1.3.0')
implementation fg.deobf('mods:Cucumber-1.15.2:3.0.9')
implementation fg.deobf('mods:MysticalAgriculture-1.15.2:3.0.10')
implementation fg.deobf('mods:industrial-foregoing-1.15.2:2.3.3')
implementation fg.deobf('mods:titanium-1.15.2:2.4.2')
implementation fg.deobf('mods:AutoRegLib-1.5:40')
implementation fg.deobf('mods:Quark-r2.1:245')
}
// Example for how to get properties into the manifest for reading by the runtime..
jar {
manifest {
attributes([
"Specification-Title": "Productive Bees",
"Specification-Vendor": "productivebees",
"Specification-Version": "1", // We are version 1 of ourselves
"Implementation-Title": project.name,
"Implementation-Version": "${version}",
"Implementation-Vendor" :"productivebees",
"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')
publishing {
publications {
mavenJava(MavenPublication) {
artifact jar
}
}
repositories {
maven {
url "file:///${project.projectDir}/mcmodsrepo"
}
}
}