-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
49 lines (41 loc) · 1015 Bytes
/
build.gradle
File metadata and controls
49 lines (41 loc) · 1015 Bytes
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
plugins {
id 'java'
id 'application'
}
group = 'com.threadmc'
version = '1.1.0'
repositories {
mavenCentral()
maven { url 'https://maven.fabricmc.net/' }
}
dependencies {
implementation 'net.fabricmc:tiny-remapper:0.11.1'
implementation 'net.fabricmc:mapping-io:0.7.1'
implementation 'info.picocli:picocli:4.7.5'
}
application {
mainClass = 'com.threadmc.trc.Main'
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
jar {
manifest {
attributes(
'Main-Class': 'com.threadmc.trc.Main'
)
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
// Robustly exclude signature files from all merged jars
exclude 'META-INF/**/*.SF', 'META-INF/**/*.DSA', 'META-INF/**/*.RSA'
eachFile { file ->
if (file.path ==~ /META-INF\/.*\.(SF|DSA|RSA)/) {
file.exclude()
}
}
}