-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
69 lines (55 loc) · 1.34 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
plugins {
id "com.github.johnrengelman.shadow" version "5.0.0"
id "forgified-fabric-loom"
}
repositories {
maven {
url = "https://maven.terraformersmc.com/releases/"
}
}
configurations {
shadowCommonTestmod
}
architectury {
platformSetupLoomIde()
fabric()
}
dependencies {
modImplementation "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"
// Remove the next line if you don't want to depend on the API
compileOnly(project(path: ":common")) {
transitive = false
}
runtimeOnly(project(path: ":common")) {
transitive = false
}
implementation(project(":fabric"))
modRuntime("com.terraformersmc:modmenu:1.16.8")
modApi "net.fabricmc.fabric-api:fabric-api:${rootProject.fabric_api_version}"
}
processResources {
inputs.property "version", project.version
filesMatching("fabric.mod.json") {
expand "version": project.version
}
}
shadowJar {
configurations = [project.configurations.shadowCommonTestmod]
classifier "dev-shadow"
}
remapJar {
input.set shadowJar.archiveFile
dependsOn shadowJar
classifier "fabric-testmod"
}
jar {
classifier "dev"
}
java {
withSourcesJar()
}
sourcesJar {
def commonSources = project(":common").remapSourcesJar
dependsOn commonSources
from zipTree(commonSources.output)
}