-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathbuild.gradle
82 lines (66 loc) · 2.12 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
plugins {
id "dev.architectury.loom" version "1.1-SNAPSHOT"
}
version = "${mc_version}-${verspec}.${verbuild}"
group = "me.towdium.jecharacters"
archivesBaseName = "jecharacters"
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
repositories {
mavenCentral()
maven { url = 'https://jitpack.io' }
maven { url = "https://dvs1.progwml6.com/files/maven/" }
maven { url = "https://maven.blamejared.com/" }
maven { url = "https://modmaven.dev" }
maven { url = 'https://maven.parchmentmc.org' }
}
configurations {
shade
implementation.extendsFrom shade
}
loom {
silentMojangMappingsLicense()
}
dependencies {
mappings loom.layered() {
officialMojangMappings()
parchment("org.parchmentmc.data:parchment-1.19.2:2022.11.27@zip")
}
minecraft "com.mojang:minecraft:${project.mc_version}"
forge "net.minecraftforge:forge:${project.forge_version}"
modImplementation 'mezz.jei:jei-1.18.2-forge:10.2.1.1002'
implementation "com.github.towdium:PinIn:${verpinin}"
forgeRuntimeLibrary "com.github.towdium:PinIn:${verpinin}"
include(group: 'com.github.towdium', name: 'PinIn', version: "${verpinin}") {
transitive = false
}
}
test {
useJUnitPlatform()
}
jar {
manifest {
attributes([
"Specification-Title" : 'Just Enough Characters',
"Specification-Vendor" : 'Towdium',
"Specification-Version" : "${verspec}",
"Implementation-Title" : project.name,
"Implementation-Version" : "${verspec}.${verbuild}",
"Implementation-Vendor" : 'Towdium',
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
])
}
}
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}
task generate(type: Exec) {
commandLine 'python', 'generate.py'
}
compileJava.dependsOn generate
processResources {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
inputs.property "version", project.version
filesMatching("META-INF/mods.toml") {
expand "version": project.version
}
}