-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathsettings.gradle.kts
108 lines (83 loc) · 4.48 KB
/
settings.gradle.kts
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
101
102
103
104
105
106
107
108
/*
* Skybot, a multipurpose discord bot
* Copyright (C) 2017 Duncan "duncte123" Sterken & Ramid "ramidzkh" Khan & Maurice R S "Sanduhr32"
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
rootProject.name = "skybot"
include("bot")
include("shared")
include("dashboard")
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
dependencyResolutionManagement {
versionCatalogs {
create("libs") {
common()
bot()
database()
voice()
dashboard()
}
}
}
fun VersionCatalogBuilder.common() {
library("logback", "ch.qos.logback", "logback-classic").version("1.2.10")
library("logback-newSlf4j", "ch.qos.logback", "logback-classic").version("1.4.5")
library("sentry", "io.sentry", "sentry-logback").version("5.4.0")
library("org-json", "org.json", "json").version("20220924")
library("jda", "net.dv8tion", "JDA").version("5.1.2")
library("trove", "net.sf.trove4j", "trove4j").version("3.0.3")
library("okhttp", "com.squareup.okhttp3", "okhttp").version("4.9.3")
version("jackson", "2.12.3")
library("jackson-core", "com.fasterxml.jackson.core", "jackson-databind").versionRef("jackson")
library("jackson-datatype", "com.fasterxml.jackson.datatype", "jackson-datatype-jsr310").versionRef("jackson")
library("jackson-kotlin", "com.fasterxml.jackson.module", "jackson-module-kotlin").versionRef("jackson")
bundle("json", listOf("jackson-core", "jackson-datatype", "jackson-kotlin"))
library("findbugs", "com.google.code.findbugs", "jsr305").version("3.0.2")
}
fun VersionCatalogBuilder.bot() {
// time parsing
// implementation(group = "net.time4j", name = "time4j-base", version = "5.8")
library("spotify", "se.michaelthelin.spotify", "spotify-web-api-java").version("8.0.0")
library("youtube", "com.google.apis", "google-api-services-youtube").version("v3-rev222-1.25.0")
library("expiringmap", "net.jodah", "expiringmap").version("0.5.9")
library("weebjava", "me.duncte123", "weebJava").version("3.0.1_7")
library("loadingBar", "me.duncte123", "loadingbar").version("1.4.1_7")
library("jagTag", "com.github.jagrosh", "JagTag").version("6dbe1ba")
library("wolfram-alpha", "com.github.DuncteBot", "wolfram-alpha-java-binding").version("5c123ae")
library("duration-parser", "me.duncte123", "durationParser").version("1.1.3")
// library("emoji-java", "com.github.minndevelopment", "emoji-java").version("master-SNAPSHOT")
library("jemoji", "net.fellbaum", "jemoji").version("1.5.2")
library("botCommons", "me.duncte123", "botCommons").version("3.1.18")
bundle("featureLibs", listOf("botCommons", "weebjava", "loadingBar", "jagTag", "wolfram-alpha", "duration-parser", "jemoji"))
library("javaLyrics", "com.github.DuncteBot.java-timed-lyrics", "protocol").version("1.2.0")
}
fun VersionCatalogBuilder.database() {
library("redis", "redis.clients", "jedis").version("3.7.0")
library("hikari", "com.zaxxer", "HikariCP").version("5.0.1")
library("mariadb", "org.mariadb.jdbc", "mariadb-java-client").version("3.1.3")
library("psql", "org.postgresql", "postgresql").version("42.5.0")
library("liquibase", "org.liquibase", "liquibase-core").version("4.8.0")
library("liquibase-slf4j", "com.mattbertolini", "liquibase-slf4j").version("4.1.0") // TODO: make this runtime only
bundle("database", listOf("hikari", "psql", "liquibase", "liquibase-slf4j"))
}
fun VersionCatalogBuilder.voice() {
// library("lavalink-client", "dev.arbjerg", "lavalink-client").version("64f8b44e8164f5873ab107f453b58b1a99a8bc13-SNAPSHOT")
library("lavalink-client", "dev.arbjerg", "lavalink-client").version("3.1.0")
}
fun VersionCatalogBuilder.dashboard() {
library("webjar-vue", "org.webjars.npm", "vue").version("2.6.14")
library("javalin", "io.javalin", "javalin").version("5.3.2")
bundle("dashWeb", listOf("javalin", "webjar-vue"))
}