This repository has been archived by the owner on Aug 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
66 lines (51 loc) · 1.46 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
// SPDX-License-Identifier: MIT
// Copyright (c) 2022 Lukas Zeller
import com.adarshr.gradle.testlogger.TestLoggerExtension
import com.adarshr.gradle.testlogger.theme.ThemeType
plugins {
kotlin("jvm") version "1.7.0"
java
// pretty print tests
id("com.adarshr.test-logger") version "3.2.0"
// test coverage
jacoco
id("org.barfuin.gradle.jacocolog") version "1.2.4"
// code quality
id("org.sonarqube") version "3.4.0.2513"
// add support for building a CLI application
application
}
repositories {
mavenCentral()
maven { setUrl("https://jitpack.io") }
}
dependencies {
implementation(platform("org.jetbrains.kotlin:kotlin-bom"))
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("com.github.bhlangonijr:chesslib:1.3.3")
testImplementation(platform("org.junit:junit-bom:5.8.2"))
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation("org.assertj:assertj-core:3.23.1")
}
application {
mainClass.set("com.lz101010.AppKt")
}
tasks.test {
useJUnitPlatform()
}
configure<TestLoggerExtension> {
theme = ThemeType.MOCHA
logLevel = LogLevel.LIFECYCLE
}
jacoco {
toolVersion = "0.8.8"
}
tasks.jacocoTestReport {
reports {
csv.isEnabled = false
html.isEnabled = false
xml.isEnabled = true
xml.outputLocation.set(layout.buildDirectory.file("reports/jacoco/test/jacocoTestReport.xml"))
}
dependsOn(tasks.check)
}