-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
73 lines (62 loc) · 2.15 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
plugins {
id 'fabric-loom' version '1.6-SNAPSHOT'
id 'java'
id 'idea'
}
base {
archivesName = "${mod_name}-fabric-${minecraft_version}"
}
repositories {
maven { url "https://maven.terraformersmc.com/releases/" }
maven { url "https://github.com/Serilum/.maven/raw/maven/" }
}
dependencies {
minecraft "com.mojang:minecraft:${minecraft_version}"
//mappings loom.officialMojangMappings()
mappings loom.layered() {
officialMojangMappings()
parchment("org.parchmentmc.data:parchment-1.20.3:2023.12.31@zip")
}
modImplementation "net.fabricmc:fabric-loader:${fabric_loader_version}"
modImplementation "net.fabricmc.fabric-api:fabric-api:${fabric_version}"
implementation group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.1'
implementation project(":Common")
modApi("com.terraformersmc:modmenu:10.0.0-beta.1") { exclude(module: "fabric-api") }
modImplementation "com.natamus.collective-ml:collective-fabric:${minecraft_version}-${collective_version}"
modCompileOnly "com.natamus.collective-ml:collective:${minecraft_version}-${collective_version}"
}
loom {
/*if (project(":Common").file("src/main/resources/${mod_id}.accesswidener").exists()) {
accessWidenerPath.set(project(":Common").file("src/main/resources/${mod_id}.accesswidener"))
}*/
mixin {
defaultRefmapName.set("${mod_id}_fabric.refmap.json")
}
runs {
client {
client()
setConfigName("Fabric Client")
ideConfigGenerated(true)
runDir("run")
}
server {
server()
setConfigName("Fabric Server")
ideConfigGenerated(true)
runDir("run")
}
}
}
//tasks.named('compileJava', JavaCompile).configure {
tasks.withType(JavaCompile).configureEach {
source(project(":Common").sourceSets.main.allSource)
}
//tasks.withType(Javadoc).configureEach {
// source(project(":Common").sourceSets.main.allJava)
//}
//tasks.named("sourcesJar", Jar) {
// from(project(":Common").sourceSets.main.allSource)
//}
processResources {
from project(":Common").sourceSets.main.resources
}