forked from aPureBase/KGraphQL
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
64 lines (54 loc) · 1.78 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
64 lines (54 loc) · 1.78 KB
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
plugins {
base
application
kotlin("jvm") version "1.5.10"
id("org.jetbrains.dokka") version "1.4.32"
signing
}
val ktor_version: String by project
val logback_version: String by project
val exposed_version: String by project
val h2_version: String by project
val hikari_version: String by project
val junit_version: String by project
val isReleaseVersion = !version.toString().endsWith("SNAPSHOT")
application {
mainClassName = "io.ktor.server.netty.EngineMain"
}
dependencies {
implementation(project(":kgraphql-ktor"))
implementation("io.ktor:ktor-server-netty:$ktor_version")
implementation("io.ktor:ktor-auth:$ktor_version")
implementation("ch.qos.logback:logback-classic:$logback_version")
implementation("org.jetbrains.exposed:exposed-core:$exposed_version")
implementation("org.jetbrains.exposed:exposed-jdbc:$exposed_version")
implementation("org.jetbrains.exposed:exposed-java-time:$exposed_version")
implementation("com.h2database:h2:$h2_version")
implementation("com.zaxxer:HikariCP:$hikari_version")
}
tasks {
compileKotlin { kotlinOptions { jvmTarget = "1.8" } }
compileTestKotlin { kotlinOptions { jvmTarget = "1.8" } }
test {
useJUnitPlatform()
}
dokkaHtml {
outputDirectory.set(buildDir.resolve("javadoc"))
dokkaSourceSets {
configureEach {
jdkVersion.set(8)
reportUndocumented.set(true)
platform.set(org.jetbrains.dokka.Platform.jvm)
}
}
}
}
val sourcesJar by tasks.creating(Jar::class) {
classifier = "sources"
from(sourceSets.main.get().allSource)
}
val dokkaJar by tasks.creating(Jar::class) {
group = JavaBasePlugin.DOCUMENTATION_GROUP
classifier = "javadoc"
from(tasks.dokkaHtml)
}