-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathbuild.gradle
111 lines (89 loc) · 3.53 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
buildscript {
repositories {
maven { url = 'https://maven.minecraftforge.net' }
mavenCentral()
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', 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: 'eclipse'
version = '1.12.2-2.6.8B'
group = 'team.cqr.cqrepoured'
archivesBaseName = 'Chocolate_Quest_Repoured'
java.toolchain.languageVersion = JavaLanguageVersion.of(8)
configurations {
includedDependencies
atDependencies
buildDependencies
implementation.extendsFrom(includedDependencies)
implementation.extendsFrom(atDependencies)
}
repositories {
// Github Releases
ivy {
url 'https://github.com'
patternLayout {
artifact '[organisation]/[module]/releases/download/v[revision]/[module]-[revision].[ext]'
}
metadataSources { artifact() }
}
// GeckoLib
maven { url 'https://dl.cloudsmith.io/public/geckolib3/geckolib/maven' }
// JEI
maven { url 'https://dvs1.progwml6.com/files/maven' }
maven { url 'https://modmaven.k-4u.nl' }
// CurseForge
maven { url 'https://www.cursemaven.com' }
}
dependencies {
minecraft 'net.minecraftforge:forge:1.12.2-14.23.5.2860'
includedDependencies 'meldexun:ASMUtil:1.0.0@jar'
includedDependencies 'meldexun:ReflectionUtil:1.0.0@jar'
implementation fg.deobf('software.bernie.geckolib:forge-1.12.2-geckolib:3.0.21')
atDependencies 'curse.maven:ReachFix-556777:3584670'
atDependencies fg.deobf('mezz.jei:jei_1.12.2:4.16.1.302')
buildDependencies 'curse.maven:AncientWarfare2-224602:3293318'
buildDependencies 'curse.maven:CodeChickenLib-242818:2779848'
buildDependencies 'curse.maven:CubicChunks-292243:3186888'
}
minecraft {
mappings channel: 'stable', version: '39-1.12'
def atDepFileTree = files(configurations.atDependencies.collect { zipTree(it) }).getAsFileTree()
accessTransformer = files(
'src/main/resources/META-INF/accesstransformer.cfg',
atDepFileTree.matching { include 'META-INF/jei_at.cfg' },
atDepFileTree.matching { include 'META-INF/accesstransformer.cfg' }
)
runs {
client {
taskName 'runClient CQR 1.12'
environment 'MC_VERSION', '1.12.2'
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
property 'forge.logging.console.level', 'info'
property 'fml.coreMods.load', 'team.cqr.cqrepoured.asm.CQRPlugin,meldexun.reachfix.asm.ReachFixPlugin'
}
server {
taskName 'runServer CQR 1.12'
environment 'MC_VERSION', '1.12.2'
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
property 'forge.logging.console.level', 'info'
property 'fml.coreMods.load', 'team.cqr.cqrepoured.asm.CQRPlugin,meldexun.reachfix.asm.ReachFixPlugin'
}
}
}
jar {
from {
configurations.includedDependencies.collect { it.isDirectory() ? it : zipTree(it) }
}
manifest {
attributes 'FMLCorePlugin': 'team.cqr.cqrepoured.asm.CQRPlugin'
attributes 'FMLCorePluginContainsFMLMod': 'true'
attributes 'FMLAT': 'accesstransformer.cfg'
}
}
compileJava {
classpath = sourceSets.main.compileClasspath + configurations.buildDependencies
}