-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
102 lines (91 loc) · 2.97 KB
/
Copy pathbuild.gradle
File metadata and controls
102 lines (91 loc) · 2.97 KB
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
plugins {
id 'net.minecraftforge.gradle' version '6.0.+'
id 'org.spongepowered.mixin' version '0.7.+'
}
group = 'com.flowingsun'
version = '2.0.1'
java {
archivesBaseName = 'tacticalmap'
toolchain.languageVersion = JavaLanguageVersion.of(17)
}
minecraft {
mappings channel: 'official', version: '1.20.1'
runs {
client {
workingDirectory project.file('run')
property 'mixin.config', 'tacticalmap.mixins.json'
property 'forge.logging.markers', 'REGISTRIES'
property 'forge.logging.console.level', 'debug'
property 'forge.enabledGameTestNamespaces', 'tacticalmap'
mods {
tacticalmap {
source sourceSets.main
}
}
}
server {
workingDirectory project.file('run')
property 'mixin.config', 'tacticalmap.mixins.json'
property 'forge.logging.markers', 'REGISTRIES'
mods {
tacticalmap {
source sourceSets.main
}
}
}
}
}
mixin {
add sourceSets.main, "tacticalmap.refmap.json"
config "tacticalmap.mixins.json"
}
repositories {
ivy {
url = uri("${projectDir}/libs")
patternLayout { artifact "[artifact].[ext]" }
metadataSources { artifact() }
}
maven {
url "https://cursemaven.com"
content {
includeGroup "curse.maven"
}
}
maven { url 'https://maven.aliyun.com/repository/public/' }
maven { url 'https://maven.minecraftforge.net' }
mavenCentral()
}
dependencies {
minecraft 'net.minecraftforge:forge:1.20.1-47.4.16'
implementation fg.deobf("curse.maven:ftb-chunks-forge-314906:6431735")
implementation fg.deobf("curse.maven:ftb-library-forge-404465:7296748")
implementation fg.deobf("curse.maven:ftb-teams-forge-404468:7499810")
implementation fg.deobf("curse.maven:architectury-api-419699:5137938")
annotationProcessor 'org.spongepowered:mixin:0.8.5:processor'
}
processResources {
inputs.property "version", project.version
filesMatching("META-INF/mods.toml") {
expand "version": project.version,
"loader_version_range": "[47,)",
"minecraft_version_range": "[1.20.1,1.21)"
}
}
tasks.named('jar', Jar).configure {
manifest {
attributes([
"Specification-Title" : "tacticalmap",
"Specification-Vendor" : "flowingsun",
"Specification-Version" : "1",
"Implementation-Title" : project.name,
"Implementation-Version" : project.version,
"Implementation-Vendor" : "flowingsun",
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ"),
"MixinConfigs": "tacticalmap.mixins.json"
])
}
finalizedBy 'reobfJar'
}
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}