-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
65 lines (55 loc) · 1.84 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
val kotlinLoggingVersion = "2.0.3"
val logbackVersion = "1.2.3"
val junitJupiterVersion = "5.7.0"
val kotlinVersion = "1.4.10"
val kotestVersion = "4.3.0"
val jacksonVersion = "2.11.+"
plugins {
kotlin("jvm") version "1.4.0"
id("org.jmailen.kotlinter") version "3.2.0"
id("com.github.ben-manes.versions") version "0.33.0"
id("se.patrikerdes.use-latest-versions") version "0.2.15"
}
java {
sourceCompatibility = JavaVersion.VERSION_14
targetCompatibility = JavaVersion.VERSION_14
withJavadocJar()
withSourcesJar()
}
apply(plugin = "org.jmailen.kotlinter")
repositories {
mavenCentral()
jcenter()
}
dependencies {
implementation(kotlin("stdlib"))
implementation(kotlin("reflect"))
implementation("io.github.microutils:kotlin-logging:$kotlinLoggingVersion")
testImplementation( "com.fasterxml.jackson.module:jackson-module-kotlin:$jacksonVersion")
testImplementation("org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion")
testImplementation("io.kotest:kotest-runner-junit5-jvm:$kotestVersion") // for kotest framework
testImplementation("io.kotest:kotest-assertions-core-jvm:$kotestVersion") // for kotest core jvm assertions
testImplementation("org.jetbrains.kotlin:kotlin-test-junit5:$kotlinVersion")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$junitJupiterVersion")
}
tasks.javadoc {
if (JavaVersion.current().isJava9Compatible) {
(options as StandardJavadocDocletOptions).addBooleanOption("html5", true)
}
}
tasks {
withType<org.jmailen.gradle.kotlinter.tasks.LintTask> {
dependsOn("formatKotlin")
}
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
jvmTarget = "14"
}
}
withType<Test> {
useJUnitPlatform()
}
withType<Wrapper> {
gradleVersion = "6.7"
}
}