-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
46 lines (38 loc) · 1.14 KB
/
build.gradle
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
plugins {
// Apply the application plugin to add support for building a CLI application in Java.
id 'application'
id 'org.jetbrains.kotlin.jvm' version "$kotlinVersion"
id 'org.jetbrains.kotlin.plugin.serialization' version "$kotlinVersion"
// linter
id "org.jlleitschuh.gradle.ktlint" version "12.1.0"
// coverage
id 'jacoco'
// docker image builder
id 'com.google.cloud.tools.jib' version "3.4.4"
}
group 'org.codegen'
repositories {
mavenCentral()
}
application {
mainClass.set("MainKt")
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion"
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.3'
implementation 'com.beust:jcommander:1.82'
// tests
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.2'
}
tasks.named('test') {
// Use JUnit Platform for unit tests.
useJUnitPlatform()
}
jacocoTestReport {
dependsOn test // tests are required to run before generating the report
reports {
csv.required = true
html.required = false
}
}