-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
144 lines (119 loc) · 5.61 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
buildscript {
repositories {
maven { url = 'https://files.minecraftforge.net/maven' }
mavenCentral()
jcenter()
maven { url = 'https://repo.spongepowered.org/repository/maven-public/' }
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '4.1.+', changing: true
classpath group: 'org.spongepowered', name: 'mixingradle', version: "${mixingradle_version}"
}
}
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'
apply plugin: 'maven-publish'
apply plugin: 'org.spongepowered.mixin'
version = '0.5'
group = 'com.underscorekilburn.patchesandbeyond'
archivesBaseName = 'patchesandbeyond'
java.toolchain.languageVersion = JavaLanguageVersion.of(8)
println('Java: ' + System.getProperty('java.version') + ' JVM: ' + System.getProperty('java.vm.version') + '(' + System.getProperty('java.vendor') + ') Arch: ' + System.getProperty('os.arch'))
minecraft {
mappings channel: 'official', version: '1.16.5'
accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
runs {
client {
workingDirectory project.file('run')
arg '-mixin.config=patchesandbeyond.mixins.json'
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"
mods {
patchesandbeyond {
source sourceSets.main
}
}
}
server {
workingDirectory project.file('run')
arg '-mixin.config=patchesandbeyond.mixins.json'
property 'forge.logging.markers', 'REGISTRIES'
property 'forge.logging.console.level', 'info'
property 'mixin.env.remapRefMap', 'true'
property 'mixin.env.refMapRemappingFile', "${projectDir}/build/createSrgToMcp/output.srg"
mods {
patchesandbeyond {
source sourceSets.main
}
}
}
data {
workingDirectory project.file('run')
property 'forge.logging.markers', 'REGISTRIES'
property 'forge.logging.console.level', 'info'
property 'mixin.env.remapRefMap', 'true'
property 'mixin.env.refMapRemappingFile', "${projectDir}/build/createSrgToMcp/output.srg"
args '--mod', 'patchesandbeyond', '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/')
mods {
patchesandbeyond {
source sourceSets.main
}
}
}
}
}
sourceSets.main.resources { srcDir 'src/generated/resources' }
mixin {
add sourceSets.main, "patchesandbeyond.refmap.json"
}
repositories {
maven { url = "https://www.cursemaven.com" }
maven { url = "http://dvs1.progwml6.com/files/maven" }
}
dependencies {
minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}"
implementation fg.deobf("curse.maven:create-328085:3536025")
implementation fg.deobf("curse.maven:flywheel-486392:3535459")
implementation fg.deobf("curse.maven:cavebiomeapi-441706:3519248")
implementation fg.deobf("curse.maven:applied-energistics-2-223794:3608871")
implementation fg.deobf("curse.maven:cofh-core-69162:3788884")
implementation fg.deobf("curse.maven:thermal-foundation-222880:3788893")
implementation fg.deobf("curse.maven:thermal-expansion-69163:3788892")
implementation fg.deobf("curse.maven:biomes-o-plenty-220318:3823991")
implementation fg.deobf("curse.maven:chisels-bits-231095:3593643")
implementation fg.deobf("curse.maven:codechicken-lib-1-8-242818:3681973")
implementation fg.deobf("curse.maven:cb-multipart-258426:3601708")
implementation fg.deobf("curse.maven:shutup-experimental-settings-407174:3188120")
implementation fg.deobf("curse.maven:ctm-267602:3137659")
implementation fg.deobf("curse.maven:chisel-235279:3376782")
implementation fg.deobf("curse.maven:libvulpes-236541:3305524")
implementation fg.deobf("curse.maven:advanced-rocketry-236542:3302417")
//implementation fg.deobf("curse.maven:blueprint-382216:3457851")
//implementation fg.deobf("curse.maven:neapolitan-382016:3567243")
//implementation fg.deobf("curse.maven:storage-drawers-223852:3402515")
implementation fg.deobf("curse.maven:ftb-quests-forge-289412:3672855")
implementation fg.deobf("curse.maven:ftb-library-forge-404465:3553840")
implementation fg.deobf("curse.maven:architectury-api-419699:3857643")
implementation fg.deobf("curse.maven:ftb-teams-forge-404468:3535953")
implementation fg.deobf("curse.maven:item-filters-309674:3376819")
compileOnly fg.deobf("mezz.jei:jei-${minecraft_version}:${jei_version}:api")
runtimeOnly fg.deobf("mezz.jei:jei-${minecraft_version}:${jei_version}")
annotationProcessor 'org.spongepowered:mixin:0.8.4:processor'
}
jar {
manifest {
attributes([
"Specification-Title": "patchesandbeyond",
"Specification-Vendor": "underscorekilburn",
"Specification-Version": "1",
"Implementation-Title": project.name,
"Implementation-Version": "${version}",
"Implementation-Vendor" :"patchesandbeyond",
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ"),
"MixinConfigs": "patchesandbeyond.mixins.json"
])
}
}