-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
92 lines (80 loc) · 2.73 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
83
84
85
86
87
88
89
90
91
92
plugins {
id 'eclipse'
id 'java-library'
id 'com.github.johnrengelman.shadow' version "8.1.1"
}
repositories {
mavenCentral()
maven {
url 'https://m2.dv8tion.net/releases'
}
maven {
url "https://repo.spongepowered.org/maven/"
}
}
sourceCompatibility = 21
targetCompatibility = 21
dependencies {
shadow group: 'com.google.code.gson', name: 'gson', version: '2.11.0'
shadow group: 'javax.annotation', name: 'javax.annotation-api', version: '1.3.2'
shadow group: 'com.sun.mail', name: 'javax.mail', version: '1.6.2'
shadow group: 'jakarta.activation', name: 'jakarta.activation-api', version: '2.1.3'
shadow group: 'org.apache.commons', name: 'commons-text', version: '1.12.0'
shadow group: 'commons-io', name: 'commons-io', version: '2.18.0'
shadow group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.14'
shadow group: 'org.apache.httpcomponents', name: 'httpmime', version: '4.5.14'
shadow ('net.dv8tion:JDA:5.0.0-beta.21')
implementation ('net.dv8tion:JDA:5.0.0-beta.21')
shadow group: 'com.thegamecommunity', name:'brigadier', version: 'TGC-1.3.0.0'
implementation group: 'com.thegamecommunity', name:'brigadier', version: 'TGC-1.3.0.0'
shadow group: 'com.mysql', name: 'mysql-connector-j', version: '8.4.0'
shadow group: 'org.eclipse.jdt', name: 'org.eclipse.jdt.annotation', version: '2.3.0'
shadow group: 'com.thegamecommunity', name:'excite', version: '0.4.0.0'
implementation group: 'com.thegamecommunity', name:'excite', version: '0.4.0.0'
/*
* Testing
*/
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.11.3'
/*
* Transitive dependencies declared to resolve security vulnerabilities
*/
shadow group: 'com.squareup.okio', name: 'okio', version: '3.9.1' //Dependabot Alert #1
}
configurations.all {
resolutionStrategy {
force group: 'com.squareup.okio', name: 'okio', version: '3.9.1' //Dependabot Alert #1
}
}
shadowJar {
mergeServiceFiles()
configurations = [project.configurations.shadow]
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/LICENSsE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/DEPENDENCIES'
exclude 'LICENSE.txt'
}
plugins.withType(JavaPlugin).configureEach {
java {
modularity.inferModulePath = true
}
}
jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest {
attributes(
'Class-Path': configurations.runtimeClasspath.collect { it.getName() }.join(' '),
'MixinConfigs': 'mixins.json',
'Main-Class': 'com.gamebuster19901.excite.Main',
'Specification-Version': 8.0,
'Multi-Release': 'true'
)
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
} {
exclude 'META-INF/*.RSA', 'META-INF/*.SF', 'META-INF/*.DSA'
}
}