-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle.kts
55 lines (48 loc) · 1.49 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
import fr.brouillard.oss.jgitver.Strategies.MAVEN
import java.time.Duration
plugins {
kotlin("jvm") version Versions.kotlin apply false
kotlin("plugin.serialization") version Versions.kotlin apply false
id("io.github.gradle-nexus.publish-plugin") version Versions.`publish-plugin`
id("fr.brouillard.oss.gradle.jgitver") version Versions.jgitver
jacoco
base
}
allprojects {
group = "org.taymyr.lagom"
repositories {
mavenCentral()
}
apply<JacocoPlugin>()
jacoco {
toolVersion = Versions.jacoco
}
}
jgitver {
strategy(MAVEN)
}
nexusPublishing {
packageGroup.set("org.taymyr")
clientTimeout.set(Duration.ofMinutes(60))
repositories {
sonatype()
}
}
val jacocoAggregateReport by tasks.creating(JacocoReport::class) {
group = LifecycleBasePlugin.VERIFICATION_GROUP
executionData(project(":lagom-extensions-java").buildDir.absolutePath + "/jacoco/test.exec")
reports {
xml.required.set(true)
}
additionalClassDirs(files(subprojects.flatMap { project ->
listOf("scala", "kotlin", "kotlin-2.13").map { project.buildDir.path + "/classes/$it/main" }
}))
additionalSourceDirs(files(subprojects.flatMap { project ->
listOf("scala", "kotlin", "kotlin-2.13").map { project.file("src/main/$it").absolutePath }
}))
dependsOn(":lagom-extensions-java:test")
}
tasks.check { finalizedBy(jacocoAggregateReport) }
tasks.wrapper {
distributionType = Wrapper.DistributionType.ALL
}