-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
73 lines (57 loc) · 1.97 KB
/
build.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
plugins {
kotlin("jvm") version "1.9.0"
// SQLDelight - Generates typesafe Kotlin APIs from SQL
// https://cashapp.github.io/sqldelight/2.0.0/
id("app.cash.sqldelight") version "2.0.0"
application
}
group = "dev.hossain.postgresqldelight"
version = "1.0-SNAPSHOT"
repositories {
google()
mavenCentral()
}
// SQLDelight - Generates typesafe Kotlin APIs from SQL
// https://github.com/cashapp/sqldelight
sqldelight {
databases {
create("SportsDatabase") {
packageName.set("dev.hossain.postgresqldelight")
// https://cashapp.github.io/sqldelight/2.0.0/jvm_postgresql/
dialect("app.cash.sqldelight:postgresql-dialect:2.0.0")
}
}
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(19))
}
dependencies {
// PostgreSQL is a powerful object-relational database system
// https://www.postgresql.org/
// https://mvnrepository.com/artifact/org.postgresql/postgresql
implementation("org.postgresql:postgresql:42.6.0")
// https://mvnrepository.com/artifact/org.slf4j/slf4j-api
implementation("org.slf4j:slf4j-api:2.0.9")
// https://mvnrepository.com/artifact/org.slf4j/slf4j-simple
implementation("org.slf4j:slf4j-simple:2.0.9")
// 光 HikariCP・A solid, high-performance, JDBC connection pool at last.
// https://github.com/brettwooldridge/HikariCP#artifacts
// https://www.baeldung.com/hikaricp
implementation("com.zaxxer:HikariCP:5.0.1")
// SQLDelight - Generates typesafe Kotlin APIs from SQL
// https://cashapp.github.io/sqldelight/2.0.0/jvm_postgresql
implementation("app.cash.sqldelight:jdbc-driver:2.0.0")
// Faker - Generates fake data for testing or populating a development database.
// https://github.com/blocoio/faker
implementation("io.github.serpro69:kotlin-faker:1.14.0")
testImplementation(kotlin("test"))
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(8)
}
application {
mainClass.set("MainKt")
}