-
Notifications
You must be signed in to change notification settings - Fork 62
/
build.gradle
176 lines (157 loc) · 5.8 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
plugins {
id 'net.minecraftforge.gradle' version '[6.0,6.2)'
id 'org.parchmentmc.librarian.forgegradle' version '1.+'
}
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
version = "${minecraft_version}-${mod_version}" as String
group = 'sonar.fluxnetworks'
archivesBaseName = 'FluxNetworks'
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
minecraft {
mappings channel: 'parchment', version: "2023.07.16-1.20.1"
runs {
client {
workingDirectory project.file('run')
property 'forge.logging.console.level', 'debug'
property 'mixin.env.remapRefMap', 'true'
property 'mixin.env.refMapRemappingFile', "${projectDir}/build/createSrgToMcp/output.srg"
mods {
fluxnetworks {
source sourceSets.main
}
}
}
server {
workingDirectory project.file('run')
property 'forge.logging.console.level', 'debug'
property 'mixin.env.remapRefMap', 'true'
property 'mixin.env.refMapRemappingFile', "${projectDir}/build/createSrgToMcp/output.srg"
mods {
fluxnetworks {
source sourceSets.main
}
}
}
data {
workingDirectory project.file('run')
property 'forge.logging.markers', 'REGISTRIES'
property 'forge.logging.console.level', 'debug'
property 'mixin.env.remapRefMap', 'true'
property 'mixin.env.refMapRemappingFile', "${projectDir}/build/createSrgToMcp/output.srg"
args '--mod', 'fluxnetworks', '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/')
mods {
fluxnetworks {
source sourceSets.main
}
}
}
}
}
sourceSets {
api {
java {
srcDir 'src/api/java'
}
}
main {
java {
srcDir 'src/main/java'
}
resources {
include '**/**'
exclude '**/*.psd'
srcDirs += 'src/generated/resources'
exclude '.cache'
}
compileClasspath += sourceSets.api.output
runtimeClasspath += sourceSets.api.output
}
}
repositories {
mavenLocal()
maven {
// JEI
name 'Progwml6 maven'
url 'https://dvs1.progwml6.com/files/maven/'
}
maven {
// The One Probe
name 'tterrag maven'
url 'https://maven.tterrag.com/'
}
maven {
// Curios
name 'TheIllusiveC4 maven'
url 'https://maven.theillusivec4.top/'
}
maven {
// JEI, Mekanism
name 'ModMaven'
url 'https://modmaven.dev/'
}
maven {
// Modern UI
name 'IzzelAliz Maven'
url 'https://maven.izzel.io/releases/'
}
maven {
name 'CurseMaven'
url 'https://www.cursemaven.com/'
content {
includeGroup "curse.maven"
}
}
mavenCentral()
}
dependencies {
minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}"
compileOnly "mekanism:Mekanism:${mekanism_version}:api"
runtimeOnly fg.deobf("mekanism:Mekanism:${mekanism_version}")
implementation fg.deobf("curse.maven:the-one-probe-245211:4629624") // 1.20.1-10.0.1
//implementation fg.deobf("curse.maven:ic2-classic-242942:4441313") // 1.19.2-2.0.5
//runtimeOnly fg.deobf("curse.maven:powah-rearchitected-633483:3855683") // [FORGE 1.18.2] v3.0.1-beta
//runtimeOnly fg.deobf("curse.maven:applied-energistics-2-223794:3554445")
compileOnly fg.deobf("curse.maven:gregtechceu-modern-890405:5100760") // GregTechCEu 1.20.1-1.1.3.b
implementation fg.deobf("mezz.jei:jei-${minecraft_version}-core:${jei_version}")
runtimeOnly fg.deobf("mezz.jei:jei-${minecraft_version}-forge:${jei_version}")
compileOnly "mezz.jei:jei-${minecraft_version}-forge-api:${jei_version}"
compileOnly fg.deobf("top.theillusivec4.curios:curios-forge:5.7.2+1.20.1:api")
runtimeOnly fg.deobf("top.theillusivec4.curios:curios-forge:5.7.2+1.20.1")
minecraftLibrary("icyllis.modernui:ModernUI-Core:${modernui_core_version}") {
exclude group: "org.apache.logging.log4j", module: "log4j-core"
exclude group: "org.apache.logging.log4j", module: "log4j-api"
exclude group: "com.google.code.findbugs", module: "jsr305"
exclude group: "org.jetbrains", module: "annotations"
exclude group: "com.ibm.icu", module: "icu4j"
exclude group: "it.unimi.dsi", module: "fastutil"
}
minecraftLibrary("icyllis.modernui:ModernUI-Markdown:${modernui_core_version}") {
exclude group: "org.apache.logging.log4j", module: "log4j-core"
exclude group: "org.apache.logging.log4j", module: "log4j-api"
exclude group: "com.google.code.findbugs", module: "jsr305"
exclude group: "org.jetbrains", module: "annotations"
exclude group: "com.ibm.icu", module: "icu4j"
exclude group: "it.unimi.dsi", module: "fastutil"
}
implementation fg.deobf("icyllis.modernui:ModernUI-Forge:${minecraft_version}-${modernui_forge_version}")
}
processResources {
inputs.property 'version', mod_version
filesMatching("META-INF/mods.toml") {
expand 'version': mod_version
}
}
jar {
manifest {
attributes([
"Specification-Title" : "Flux-Networks",
"Specification-Vendor" : "SonarSonic",
"Specification-Version" : "1",
"Implementation-Title" : project.name,
"Implementation-Version" : project.version,
"Implementation-Vendor" : "SonarSonic, BloCamLimb",
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
])
}
}