-
-
Notifications
You must be signed in to change notification settings - Fork 60
/
build.gradle.kts
47 lines (38 loc) · 1.24 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
buildscript {
dependencies {
// solves KGP classloader issues
classpath(libs.kotlin.gradle)
}
}
plugins {
alias(libs.plugins.ksp) apply false
alias(libs.plugins.nexus.publish)
base
}
group = "me.tatarka.inject"
version = libs.versions.kotlin.inject.get()
nexusPublishing {
repositories {
sonatype()
}
}
val testReport by tasks.registering(TestReport::class) {
destinationDirectory = layout.buildDirectory.map { it.asFile.resolve("reports") }
}
val copyTestResults by tasks.registering(Copy::class) {
destinationDir = layout.buildDirectory.get().asFile.resolve("test-results")
includeEmptyDirs = false
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
val testReportApple by tasks.registering(TestReport::class) {
destinationDirectory = layout.buildDirectory.map { it.asFile.resolve("reports") }
}
val copyTestResultsApple by tasks.registering(Copy::class) {
destinationDir = layout.buildDirectory.get().asFile.resolve("test-results")
includeEmptyDirs = false
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
val check by tasks.getting
val checkApple by tasks.creating
check.finalizedBy(testReport, copyTestResults)
checkApple.finalizedBy(testReportApple, copyTestResultsApple)