-
Notifications
You must be signed in to change notification settings - Fork 1
/
settings.gradle.kts
106 lines (93 loc) · 4.34 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
rootProject.name = "habbokt"
dependencyResolutionManagement {
repositories(RepositoryHandler::mavenCentral)
versionCatalogs {
create("deps") {
// Dependency versions.
version("kotlin", "1.8.20")
version("ktor", "2.3.0")
version("versions", "0.46.0")
version("slf4j", "2.0.7")
version("simplecaptcha", "1.2.2")
version("argon2", "2.11")
version("exposed", "0.41.1")
version("h2database", "2.1.214")
version("hikaricp", "5.0.1")
version("guice", "1.6.0")
version("jackson", "2.14.2")
version("flagstone", "3.0.2")
version("dokka", "1.8.10")
// Dependency plugins
plugin("jvm", "org.jetbrains.kotlin.jvm").versionRef("kotlin")
plugin("versions", "com.github.ben-manes.versions").versionRef("versions")
plugin("dokka", "org.jetbrains.dokka").versionRef("dokka")
// Dependency libraries
// Ktor Dependencies
library("ktor-server-core", "io.ktor", "ktor-server-core").versionRef("ktor")
library("ktor-server-netty", "io.ktor", "ktor-server-netty").versionRef("ktor")
library("ktor-server-status-pages", "io.ktor", "ktor-server-status-pages").versionRef("ktor")
library("ktor-server-call-logging", "io.ktor", "ktor-server-call-logging").versionRef("ktor")
library("ktor-server-sessions", "io.ktor", "ktor-server-sessions").versionRef("ktor")
library("ktor-server-auth", "io.ktor", "ktor-server-auth").versionRef("ktor")
library("ktor-client-core", "io.ktor", "ktor-client-core").versionRef("ktor")
library("ktor-client-java", "io.ktor", "ktor-client-java").versionRef("ktor")
library("ktor-server-pebble", "io.ktor", "ktor-server-pebble").versionRef("ktor")
// Database Dependencies
library("exposed-core", "org.jetbrains.exposed", "exposed-core").versionRef("exposed")
library("exposed-dao", "org.jetbrains.exposed", "exposed-dao").versionRef("exposed")
library("exposed-jdbc", "org.jetbrains.exposed", "exposed-jdbc").versionRef("exposed")
library("h2database", "com.h2database", "h2").versionRef("h2database")
library("hikaricp", "com.zaxxer", "HikariCP").versionRef("hikaricp")
// Guice
library("guice", "dev.misfitlabs.kotlinguice4", "kotlin-guice").versionRef("guice")
// Jackson
library("jackson-module-kotlin", "com.fasterxml.jackson.module", "jackson-module-kotlin").versionRef("jackson")
library("jackson-dataformat-xml", "com.fasterxml.jackson.dataformat", "jackson-dataformat-xml").versionRef("jackson")
library("jackson-module-parameter-names", "com.fasterxml.jackson.module", "jackson-module-parameter-names").versionRef("jackson")
// Misc Dependencies
library("slf4j-simple", "org.slf4j", "slf4j-simple").versionRef("slf4j")
library("simplecaptcha", "cn.apiclub.tool", "simplecaptcha").versionRef("simplecaptcha")
library("argon2", "de.mkammerer", "argon2-jvm").versionRef("argon2")
library("flagstone", "com.flagstone", "transform").versionRef("flagstone")
// Dependency bundles
listOf(
"ktor-server-core",
"ktor-server-netty",
"ktor-server-status-pages",
"ktor-server-call-logging",
"ktor-server-sessions",
"ktor-server-auth",
"ktor-server-pebble"
).also { bundle("ktor", it) }
listOf(
"ktor-client-core",
"ktor-client-java"
).also { bundle("ktor-client", it) }
listOf(
"exposed-core",
"exposed-dao",
"exposed-jdbc",
"h2database",
"hikaricp"
).also { bundle("database", it) }
listOf(
"jackson-module-kotlin",
"jackson-dataformat-xml",
"jackson-module-parameter-names"
).also { bundle("jackson", it) }
}
}
}
listOf(
"api",
"argon2",
"dao",
"db",
"game",
"packet",
"page",
"session",
"swf",
"web",
"xml"
).also(::include)