-
Notifications
You must be signed in to change notification settings - Fork 18
/
build.gradle
153 lines (115 loc) · 3.83 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
plugins {
id 'com.matthewprenger.cursegradle' version '1.4.0'
id 'org.cadixdev.licenser' version '0.6.1'
id 'fabric-loom'
id 'java'
id 'maven-publish'
}
def minecraftVersion = project.properties['minecraftVersion']
group = 'com.github.mixinors'
version = '2.0.8' + project.properties['minecraftVersion']
license {
header 'LICENSE'
ignoreFailures = true
}
loom {
accessWidenerPath = file('src/main/resources/astromine.accesswidener')
runs {
create('Data') {
client()
vmArg('-Dfabric-api.datagen')
vmArg('-Dfabric-api.datagen.output-dir=' + file('src/generated/resources'))
ideConfigGenerated true
runDir 'build/datagen'
source sourceSets.main
}
}
}
repositories {
maven { url 'https://maven.vini2003.dev/releases' }
maven { url 'https://maven.terraformersmc.com/releases/' }
maven { url 'https://maven.architectury.dev' }
maven { url 'https://jitpack.io' }
maven { url 'https://ladysnake.jfrog.io/artifactory/mods' }
maven {
url 'https://maven.blamejared.com'
content {
includeGroup 'vazkii.patchouli'
}
}
}
dependencies {
ext.modApiInclude = { str ->
modApi str
include str
}
// Minecraft
minecraft "com.mojang:minecraft:${minecraftVersion}"
// Yarn
mappings "net.fabricmc:yarn:${yarnVersion}:v2"
// Fabric Loader
modImplementation "net.fabricmc:fabric-loader:$fabricLoaderVersion"
// Fabric API
modImplementation "net.fabricmc.fabric-api:fabric-api:$fabricApiVersion"
// Cardinal Components Base
modApiInclude("dev.onyxstudios.cardinal-components-api:cardinal-components-base:$cardinalComponentsVersion")
// Cardinal Components Block
modApiInclude("dev.onyxstudios.cardinal-components-api:cardinal-components-block:$cardinalComponentsVersion")
// Cardinal Components Chunk
modApiInclude("dev.onyxstudios.cardinal-components-api:cardinal-components-chunk:$cardinalComponentsVersion")
// Cardinal Components Entity
modApiInclude("dev.onyxstudios.cardinal-components-api:cardinal-components-entity:$cardinalComponentsVersion")
// Cardinal Components Item
modApiInclude("dev.onyxstudios.cardinal-components-api:cardinal-components-item:$cardinalComponentsVersion")
// Cardinal Components World
modApiInclude("dev.onyxstudios.cardinal-components-api:cardinal-components-world:$cardinalComponentsVersion")
// Cardinal Components Level
modApiInclude("dev.onyxstudios.cardinal-components-api:cardinal-components-level:$cardinalComponentsVersion")
// Shapes
modApiInclude("com.terraformersmc.terraform-api:terraform-shapes-api-v1:$shapesVersion")
// Patchouli
modApiInclude("vazkii.patchouli:Patchouli:$patchouliVersion")
// ModMenu
modApi("com.terraformersmc:modmenu:$modMenuVersion")
// Energy
modApiInclude("teamreborn:energy:$energyVersion")
// Cloth Config
modApiInclude("me.shedaniel.cloth:cloth-config-fabric:$clothConfigVersion")
// Roughly Enough Items
modApi("me.shedaniel:RoughlyEnoughItems-fabric:$roughlyEnoughItemsVersion")
// Architectury
modImplementation("dev.architectury:architectury-fabric:$architecturyVersion")
// Hammer Core
modApiInclude("dev.vini2003:hammer-core:$hammerVersion")
// Hammer GUI
modApiInclude("dev.vini2003:hammer-gui:$hammerVersion")
// Hammer GUI Energy
modApiInclude("dev.vini2003:hammer-gui-energy:$hammerVersion")
// Hammer Gravity
modApiInclude("dev.vini2003:hammer-gravity:$hammerVersion")
// PigLib
modApiInclude("com.shnupbups:Piglib:$pigLibVersion")
// CauldronLib
modApiInclude("com.shnupbups:CauldronLib:$cauldronLibVersion")
}
tasks.processResources {
inputs.property('version', project.version)
filesMatching('fabric.mod.json') {
expand('version': project.version)
}
}
tasks.withType(JavaCompile) {
options.release = 17
}
java {
withSourcesJar()
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
sourceSets {
main {
resources {
srcDir('src/generated/resources')
}
}
}