-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
49 lines (40 loc) · 1.02 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
val kotlinVersion: String by project
val gradleDownloadTaskVersion: String by project
val tagPropertyName = "tag"
plugins {
kotlin("jvm")
id("com.diffplug.spotless")
}
allprojects {
group = "com.github.c64lib"
version = "1.7.6"
if (project.hasProperty(tagPropertyName)) {
version = project.property(tagPropertyName) ?: version
}
repositories {
mavenCentral()
jcenter {
url = uri("https://jcenter.bintray.com/")
}
}
}
tasks {
val collectTestResults by register("collectTestResults") {
group = "verification"
doLast {
fileTree(".") {
include("**/build/test-results/test/*.xml")
exclude("build/")
}.forEach {
copy {
from(it)
into("$buildDir/test-results/gradle")
}
}
}
}
collectTestResults.dependsOn(named("test"))
}
dependencies {
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10")
}