forked from DaFuqs/Spectrum
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
184 lines (156 loc) · 6.21 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
plugins {
id 'fabric-loom' version '0.12-SNAPSHOT'
id 'maven-publish'
}
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
archivesBaseName = project.archives_base_name
version = project.mod_version
group = project.maven_group
repositories {
mavenLocal()
maven { url "https://maven.shedaniel.me/" }
maven { url "https://maven.terraformersmc.com" }
maven { url "https://maven.nucleoid.xyz/" }
maven {
name = "Enchantment Descriptions"
url = 'https://maven.blamejared.com'
}
maven {
name = "Patchouli" // https://github.com/Vazkii/Patchouli
url = 'https://maven.blamejared.com'
}
maven {
name = 'Ladysnake Mods'
url = 'https://maven.ladysnake.org/releases'
}
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
filter {
includeGroup "maven.modrinth"
}
}
maven {
name = "banner++"
url "https://maven.theepicblock.nl"
}
maven {
name "entity reach attribute"
url "https://maven.jamieswhiteshirt.com/libs-release/"
}
maven { url 'https://maven.wispforest.io/' } // owo lib
maven { url 'https://jitpack.io' }
maven {
name = "ProgrammerArtInjector"
url = 'https://maven.extracraftx.com'
}
maven {
name = "Shimmer"
url = 'https://maven.firstdarkdev.xyz/snapshots'
}
maven {
url "https://maven.ryanliptak.com/"
}
maven {
name = "Curse"
url = 'https://cfa2.cursemaven.com'
}
}
dependencies {
// jetbrains annotations
implementation 'org.jetbrains:annotations:23.0.0'
// fabric & api
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
// mine
modImplementation "maven.modrinth:Revelationary:${project.revelationary_version}"
modImplementation include("com.github.DaFuqs:AdditionalEntityAttributes:${project.additional_entity_attributes_version}")
modImplementation include("com.github.DaFuqs:Arrowhead:${project.arrowhead_version}")
modApi("me.shedaniel.cloth:cloth-config-fabric:${project.cloth_config_version}"){
exclude(group: "net.fabricmc.fabric-api")
}
modApi("com.terraformersmc:modmenu:${project.modmenu_version}")
implementation include("com.github.LlamaLad7:MixinExtras:0.0.12")
annotationProcessor("com.github.LlamaLad7:MixinExtras:0.0.12")
modImplementation "vazkii.patchouli:Patchouli:${project.patchouli_version}" // https://maven.blamejared.com/vazkii/patchouli/Patchouli/
modImplementation "io.wispforest:owo-lib:${project.owo_version}+1.18"
// https://github.com/shedaniel/RoughlyEnoughItems
modCompileOnly "me.shedaniel:RoughlyEnoughItems-fabric:${project.rei_version}"
modRuntimeOnly "me.shedaniel:RoughlyEnoughItems-fabric:${project.rei_version}"
// https://github.com/emilyploszaj/trinkets
modImplementation "dev.emi:trinkets:${project.trinkets_version}"
// https://github.com/OnyxStudios/Cardinal-Components-API/wiki/
modImplementation include("dev.onyxstudios.cardinal-components-api:cardinal-components-base:${project.cca_version}")
modImplementation include("dev.onyxstudios.cardinal-components-api:cardinal-components-entity:${project.cca_version}")
modImplementation include("dev.onyxstudios.cardinal-components-api:cardinal-components-item:${project.cca_version}")
modImplementation include("dev.onyxstudios.cardinal-components-api:cardinal-components-level:${project.cca_version}")
// https://github.com/TheEpicBlock/banner-plus-plus
modImplementation include("io.github.fablabsmc:bannerpp:2.0.6-teb.1+mc.1.18.2")
modImplementation include("com.github.emilyploszaj:step-height-entity-attribute:${project.step_height_attribute_version}")
modImplementation include("com.jamieswhiteshirt:reach-entity-attributes:${project.reach_entity_attributes_version}")
modImplementation include("com.github.devs-immortal:Incubus-Core:${project.incubus_core_version}")
modImplementation("com.github.LudoCrypt:Liminal-Library:5.2.1")
// includes the textures in the "programmer art" folder in the programmer art texture pack
modImplementation "com.extracraftx.minecraft:ProgrammerArtInjector:${project.programmer_art_injector_version}"
include "com.extracraftx.minecraft:ProgrammerArtInjector:${project.programmer_art_injector_version}"
// Soft testing-only dependencies:
// Descriptions for all Enchantments https://maven.blamejared.com/net/darkhax/enchdesc/
modCompileOnly("net.darkhax.enchdesc:EnchantmentDescriptions-Common-${project.enchantment_descriptions_mc_version}:${project.enchantment_descriptions_mod_version}")
modRuntimeOnly("squeek.appleskin:appleskin-fabric:mc1.18.2-2.4.1") { exclude module: 'modmenu' }
}
loom {
accessWidenerPath = file("src/main/resources/spectrum.accesswidener")
}
processResources {
inputs.property "version", project.version
filesMatching("fabric.mod.json") {
expand "version": project.version
}
}
// ensure that the encoding is set to UTF-8, no matter what the system default is
// this fixes some edge cases with special characters not displaying correctly
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
it.options.release = 17 // Minecraft 1.18 (1.18-pre2) upwards uses Java 17.
}
java {
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
// if it is present.
// If you remove this line, sources will not be generated.
withSourcesJar()
}
jar {
from("LICENSE.md") {
rename { "${it}_${project.archivesBaseName}"}
}
}
// configure the maven publication
publishing {
publications {
mavenJava(MavenPublication) {
// add all the jars that should be included when publishing to maven
artifact(remapJar) {
builtBy remapJar
}
artifact(sourcesJar) {
builtBy remapSourcesJar
}
}
}
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
repositories {
// Add repositories to publish to here.
// Notice: This block does NOT have the same function as the block in the top level.
// The repositories here will be used for publishing your artifact, not for
// retrieving dependencies.
mavenLocal()
}
}