forked from gKokasai/api.kokasai.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
64 lines (54 loc) · 1.58 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
import org.jlleitschuh.gradle.ktlint.KtlintExtension
plugins {
kotlin("jvm") version "1.5.0"
kotlin("plugin.serialization") version "1.5.0"
id("com.github.johnrengelman.shadow") version "7.0.0"
id("org.jlleitschuh.gradle.ktlint") version "10.0.0"
id("com.github.ben-manes.versions") version "0.38.0"
}
group = "com.kokasai.api"
version = "1.0"
allprojects {
apply(plugin = "kotlin")
repositories {
mavenCentral()
}
dependencies {
implementation(kotlin("stdlib"))
}
}
dependencies {
implementation("io.ktor:ktor-client-cio:1.5.4")
implementation("io.ktor:ktor-auth:1.5.4")
implementation("io.ktor:ktor-server-netty:1.5.4")
implementation("io.ktor:ktor-server-sessions:1.5.4")
implementation("io.ktor:ktor-serialization:1.5.4")
implementation(project(":flowerkt:core"))
implementation(project(":flowerkt:database-exposed-sqlite"))
implementation(project(":flowerkt:file-webdav"))
implementation(project(":flowerkt:mail-sendgrid"))
implementation(project(":flowerkt:session-exposed"))
implementation("ch.qos.logback:logback-classic:1.2.3")
implementation("io.insert-koin:koin-core:3.0.1")
}
tasks {
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
}
}
}
tasks.withType<Jar> {
manifest {
attributes(
"Main-Class" to "com.kokasai.api.LaunchKt"
)
}
}
// Heroku で実行されるタスク
task("stage") {
dependsOn("shadowJar")
}
configure<KtlintExtension> {
version.set("0.41.0")
}