forked from RiiConnect24/RC24-Bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
84 lines (73 loc) · 2.13 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
/*
* This file was generated by the Gradle 'init' task.
*/
plugins {
id 'java'
id 'maven-publish'
id 'eclipse'
id 'com.github.johnrengelman.shadow' version "8.1.1"
}
repositories {
mavenCentral()
maven {
url = uri('https://m2.dv8tion.net/releases/')
}
maven {
url = uri('https://repo.maven.apache.org/maven2/')
}
maven {
url "https://repo.spongepowered.org/maven/"
}
maven {
url = uri('https://repo.aikar.co/content/groups/aikar/')
}
}
dependencies {
shadow 'com.thegamecommunity:BrigadierDiscordExtension:0.5.0.2'
implementation 'com.thegamecommunity:BrigadierDiscordExtension:0.5.0.2'
shadow ('net.dv8tion:JDA:5.0.0-beta.9')
shadow 'io.sentry:sentry-logback:6.21.0'
shadow 'org.codehaus.groovy:groovy-jsr223:3.0.17'
shadow 'org.jsoup:jsoup:1.16.1'
shadow 'mysql:mysql-connector-java:8.0.33'
shadow 'co.aikar:idb-core:1.0.0-SNAPSHOT'
shadow 'com.zaxxer:HikariCP:5.0.1'
shadow 'org.yaml:snakeyaml:2.0'
shadow 'com.google.code.gson:gson:2.10.1'
shadow 'com.google.guava:guava:32.0.0-jre'
shadow 'com.datadoghq:java-dogstatsd-client:4.2.0'
shadow 'org.json:json:20230227'
shadow group: 'org.apache.commons', name: 'commons-text', version: '1.10.0'
}
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'
}
group = 'xyz.rc24.bot'
version = '5.3.4'
description = 'RC24-Bot'
java.sourceCompatibility = JavaVersion.VERSION_19
jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest {
attributes(
'Class-Path': configurations.runtimeClasspath.collect { it.getName() }.join(' '),
'MixinConfigs': 'mixins.json',
'Main-Class': 'xyz.rc24.bot.RiiConnect24Bot',
'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'
}
}