-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
89 lines (74 loc) · 1.75 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
plugins {
id 'org.jetbrains.kotlin.jvm' version '2.1.0'
id 'org.jlleitschuh.gradle.ktlint' version '12.1.2'
id 'jacoco'
id 'maven-publish'
id 'java-library'
}
group 'org.harrismusic'
version '0.1-SNAPSHOT'
repositories {
mavenLocal()
mavenCentral()
}
java {
withSourcesJar()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:2.1.0"
testImplementation "com.natpryce:hamkrest:1.8.0.1"
testImplementation 'org.jetbrains.kotlin:kotlin-test-junit:2.1.0'
testImplementation 'junit:junit:4.13.2'
testImplementation "pl.pragmatists:JUnitParams:1.1.1"
testImplementation 'io.kotest:kotest-runner-junit4:5.9.1'
testImplementation 'io.kotest:kotest-assertions-core:5.9.1'
testImplementation 'io.kotest:kotest-property:5.9.1'
}
compileJava {
sourceCompatibility = 17
targetCompatibility = 17
}
compileTestJava {
sourceCompatibility = 17
targetCompatibility = 17
}
compileKotlin {
kotlinOptions.jvmTarget = 17
}
compileTestKotlin {
kotlinOptions.jvmTarget = 17
}
tasks.withType(Test) {
testLogging {
exceptionFormat "full"
events "skipped", "failed"
showStandardStreams true
}
}
test {
finalizedBy jacocoTestReport
}
jacocoTestReport {
dependsOn test
}
jacoco {
toolVersion = "0.8.7"
reportsDirectory = layout.buildDirectory.dir('customJacocoReportDir')
}
jacocoTestReport {
reports {
xml.required = false
csv.required = false
html.outputLocation = layout.buildDirectory.dir('jacocoHtml')
}
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId = 'org.harrismusic'
artifactId = 'library'
version = '1.0.2'
from components.java
}
}
}