forked from bernie-g/Techarium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
184 lines (159 loc) · 5.87 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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
buildscript {
repositories {
maven { url = 'https://sizableshrimp.me/maven' }
maven { url = 'https://maven.minecraftforge.net' }
jcenter()
mavenCentral()
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '4.1.+', changing: true
classpath 'com.github.jengelman.gradle.plugins:shadow:4.0.4'
}
}
plugins {
id "application"
}
apply plugin: "java"
apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
apply plugin: 'com.github.johnrengelman.shadow'
version = '1.0'
group = 'software.bernie.techarium'
archivesBaseName = 'techarium'
java.toolchain.languageVersion = JavaLanguageVersion.of(8) // Mojang ships Java 8 to end users, so your mod should target Java 8.
ext {
javaMainClass = "software.bernie.ci.TravisDiscordNotif"
}
application {
mainClassName = javaMainClass
}
minecraft {
mappings channel: 'official', version: '1.16.5'
accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
runs {
client {
workingDirectory project.file('run')
property 'mixin.env.remapRefMap', 'true'
property 'mixin.env.refMapRemappingFile', "${buildDir}/createSrgToMcp/output.srg"
mods {
techarium {
source sourceSets.main
}
}
}
server {
workingDirectory project.file('run')
property 'mixin.env.remapRefMap', 'true'
property 'mixin.env.refMapRemappingFile', "${buildDir}/createSrgToMcp/output.srg"
mods {
techarium {
source sourceSets.main
}
}
}
data {
workingDirectory project.file('run')
property 'mixin.env.remapRefMap', 'true'
property 'mixin.env.refMapRemappingFile', "${buildDir}/createSrgToMcp/output.srg"
args '--mod', 'techarium', '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/')
mods {
techarium {
source sourceSets.main
}
}
}
}
}
sourceSets {
main {
resources {
srcDir 'src/generated/resources'
}
}
}
repositories {
maven { url 'https://dl.cloudsmith.io/public/geckolib3/geckolib/maven/' }
maven { url 'https://repo.repsy.io/mvn/fadookie/particleman' }
maven {
url = "https://www.cursemaven.com"
}
maven {
// location of the maven that hosts JEI files
name = "Progwml6 maven"
url = "https://dvs1.progwml6.com/files/maven/"
}
maven { url "https://maven.tehnut.info" }
maven {
name 'tterrag maven'
url "https://maven.tterrag.com/"
}
maven { url 'https://maven.blamejared.com' }
maven {
// for Immersive Engineering
url "https://modmaven.dev/"
content {
includeGroup 'blusunrize.immersiveengineering'
includeGroup 'malte0811'
}
}
}
dependencies {
minecraft 'net.minecraftforge:forge:1.16.5-36.1.1'
//Geckolib
implementation fg.deobf('software.bernie.geckolib:geckolib-forge-1.16.5:3.0.38')
//adventure
implementation "net.kyori:adventure-api:$adventure_version"
implementation "net.kyori:adventure-text-serializer-gson:$adventure_version"
implementation "net.kyori:adventure-text-serializer-legacy:$adventure_version"
implementation "net.kyori:adventure-text-serializer-plain:$adventure_version"
//Integration mods
compileOnly fg.deobf("mezz.jei:jei-${mc_version}:${jei_version}:api")
runtimeOnly fg.deobf("mezz.jei:jei-${mc_version}:${jei_version}")
implementation fg.deobf("curse.maven:mekanism-268560:3206392")
implementation fg.deobf("curse.maven:theoneprobe-245211:3157997")
implementation fg.deobf("com.blamejared.crafttweaker:CraftTweaker-1.16.5:$crafttweaker_version")
implementation fg.deobf("curse.maven:mystical-agriculture-246640:3251398")
implementation fg.deobf("curse.maven:cucumber-272335:3249370")
implementation fg.deobf("curse.maven:pams-harvestcraft-2-crops-361385:3276350")
implementation fg.deobf("curse.maven:thermal-cultivation-271835:3246999")
implementation fg.deobf("curse.maven:thermal-foundation-222880:3248150")
implementation fg.deobf("curse.maven:xl-food-mod-plus-448703:3232224")
implementation fg.deobf("curse.maven:farmers-delight-398521:3310983")
//compile fg.deobf("curse.maven:immersive-engineering-231951:3233018")
implementation fg.deobf("com.teamcofh:CoFHCore:1.16.4-1.2.0")
compileOnly fg.deobf("blusunrize.immersiveengineering:ImmersiveEngineering:1.16.5-4.2.4-134.7")
// Compile against the Hwyla API, but run with full mod
compileOnly fg.deobf("mcp.mobius.waila:Hwyla:${hwyla_version}:api")
runtimeOnly fg.deobf("mcp.mobius.waila:Hwyla:${hwyla_version}")
//lombok
compileOnly 'org.projectlombok:lombok:1.18.20'
annotationProcessor 'org.projectlombok:lombok:1.18.20'
//discord webhook library
compile("club.minnced:discord-webhooks:0.5.7")
}
shadowJar {
dependencies {
include(dependency('net.kyori:.*'))
}
relocate 'net.kyori', 'software.bernie.shadowed.net.kyori'
classifier ''
}
jar {
duplicatesStrategy(DuplicatesStrategy.EXCLUDE)
manifest {
attributes([
"Specification-Title" : "techarium",
"Specification-Vendor" : "techarium",
"Specification-Version" : "1.0.0",
"Implementation-Title" : project.name,
"Implementation-Version" : "${version}",
"Implementation-Vendor" : "techarium",
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
])
}
}
reobf {
shadowJar {}
}
jar.finalizedBy('reobfJar')