-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle
133 lines (114 loc) · 3.93 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
buildscript {
repositories {
maven { url = 'https://maven.minecraftforge.net'}
maven { url = 'https://maven.parchmentmc.org'}
mavenCentral()
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true
classpath 'org.parchmentmc:librarian:1.+'
}
}
apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'org.parchmentmc.librarian.forgegradle'
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
version = "${project.mcVersion}-${project.modVersion}"
group = 'me.haydenb.assemblylinemachines'
archivesBaseName = 'assemblylinemachines'
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
minecraft {
accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
mappings channel: 'parchment', version: '2023.02.05-1.19.3'
runs {
client {
workingDirectory project.file('run-cli')
//Forge-required properties (2)
property 'forge.logging.console.level', 'debug'
property 'forge.logging.markers', 'REGISTRIES'
//Mixin-required properties and arg (2)
property 'mixin.env.remapRefMap', 'true'
property 'mixin.env.refMapRemappingFile', file('build/createSrgToMcp/output.srg')
mods {
assemblylinemachines {
source sourceSets.main
}
}
}
server {
workingDirectory project.file('run-srv')
//Forge-required properties (2)
property 'forge.logging.console.level', 'debug'
property 'forge.logging.markers', 'REGISTRIES'
//Mixin-required properties and arg (2)
property 'mixin.env.remapRefMap', 'true'
property 'mixin.env.refMapRemappingFile', file('build/createSrgToMcp/output.srg')
mods {
assemblylinemachines {
source sourceSets.main
}
}
}
data {
workingDirectory project.file('run-cli')
//Forge-required properties (2)
property 'forge.logging.console.level', 'debug'
property 'forge.logging.markers', 'REGISTRIES'
//Mixin-required properties and arg (2)
property 'mixin.env.remapRefMap', 'true'
property 'mixin.env.refMapRemappingFile', file('build/createSrgToMcp/output.srg')
//Datagen-required args (4)
args '--mod', 'assemblylinemachines', '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/'), '--input', file('src/main/resources/')
mods {
assemblylinemachines {
source sourceSets.main
}
}
}
}
}
sourceSets {
main {
resources {
srcDirs += "src/generated/resources"
}
}
}
repositories{
maven{
//Cursemaven
url "https://cursemaven.com"
}
maven{
//Sponge
url "https://repo.spongepowered.org/maven"
}
maven{
//Patchouli
url "https://maven.blamejared.com"
}
flatDir{
//Local
dirs "gradle/plugins"
}
}
dependencies {
minecraft "net.minecraftforge:forge:${project.mcVersion}-${project.forgeVersion}"
//IMC
implementation fg.deobf("curse.maven:jei-238222:4371830")
implementation fg.deobf("vazkii.patchouli:Patchouli:1.19.3-78-SNAPSHOT")
implementation fg.deobf("curse.maven:theoneprobe-245211:4159743")
//implementation fg.deobf("curse.maven:mekanism-268560:3954410")
runtimeOnly fg.deobf("local.legendarytooltips:legendarytooltips:1.19.3-DATAGENFIX")
runtimeOnly fg.deobf("curse.maven:iceberg-520110:4257665")
runtimeOnly fg.deobf("curse.maven:prism-638111:4238759")
//runtimeOnly fg.deobf("curse.maven:ato-405593:3964725")
}
jar.finalizedBy("reobfJar")
jar{
manifest{
attributes([
"Implementation-Version": project.version
])
}
}