-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
100 lines (88 loc) · 3.16 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
93
94
95
96
97
98
99
100
plugins {
id "java"
id "application"
id "com.github.johnrengelman.shadow" version "7.1.2"
id "nu.studer.jooq" version "6.0.1"
}
group "de.kittybot"
mainClassName = "de.kittybot.kittybot.main.Main"
sourceCompatibility = 1.11
compileJava.options.encoding = "UTF-8"
repositories {
maven { url "https://m2.dv8tion.net/releases" }
maven { url "https://jitpack.io" }
mavenCentral()
jcenter() // this is still required because of jda utilities
}
dependencies {
// discord/jda related
implementation("net.dv8tion:JDA:4.4.0_352") {
exclude group: "club.minnced", module: "opus-java"
}
implementation "com.jagrosh:jda-utilities:3.0.5"
implementation "club.minnced:discord-webhooks:0.7.5"
implementation "dev.mlnr:BotListHandler-jda:2.0.0_11"
// audio
implementation "com.github.KittyBot-Org:Lavalink-Client:1.0.0"
// database
implementation "com.zaxxer:HikariCP:5.0.0"
implementation "org.jooq:jooq:3.16.0"
implementation "org.postgresql:postgresql:42.3.1"
jooqGenerator "org.postgresql:postgresql:42.3.1"
// logging
implementation "ch.qos.logback:logback-classic:1.2.8"
implementation "io.sentry:sentry-logback:5.5.2"
// eval
implementation "org.codehaus.groovy:groovy-jsr223:3.0.9"
// jjwt
implementation "io.jsonwebtoken:jjwt-api:0.11.2"
implementation "io.jsonwebtoken:jjwt-impl:0.11.2"
implementation "io.jsonwebtoken:jjwt-jackson:0.11.2"
// Prometheus
implementation "io.prometheus:simpleclient:0.14.1"
implementation "io.prometheus:simpleclient_hotspot:0.14.1"
implementation "io.prometheus:simpleclient_httpserver:0.14.1"
// other
implementation "io.javalin:javalin:4.2.0"
implementation "io.github.classgraph:classgraph:4.8.138"
implementation "com.github.ben-manes.caffeine:caffeine:3.0.5"
implementation "com.squareup.okhttp3:okhttp:4.9.3"
}
jooq {
version = "3.15.2"
configurations {
main {
generateSchemaSourceOnCompilation = false
generationTool {
logging = org.jooq.meta.jaxb.Logging.WARN
jdbc {
driver = "org.postgresql.Driver"
url = "jdbc:postgresql://${KITTYBOT_DB_HOST}:${KITTYBOT_DB_PORT}/${KITTYBOT_DB_DATABASE}"
user = KITTYBOT_DB_USER
password = KITTYBOT_DB_PASSWORD
}
generator {
name = "org.jooq.codegen.DefaultGenerator"
database {
name = "org.jooq.meta.postgres.PostgresDatabase"
inputSchema = "public"
includes = ".*"
excludes = ""
}
generate {
records = true
fluentSetters = true
}
target {
packageName = "de.kittybot.kittybot.jooq"
directory = "src/main/jooq"
}
strategy.name = "org.jooq.codegen.DefaultGeneratorStrategy"
}
}
}
}
}
ext {
moduleName = "KittyBot"
}