-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
34 lines (31 loc) · 1.01 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
import com.github.jk1.license.render.InventoryReportRenderer
import com.github.jk1.license.render.JsonReportRenderer
import org.gradle.api.tasks.testing.logging.TestLogEvent
plugins {
alias(libs.plugins.license) apply true
}
licenseReport {
renderers = arrayOf(JsonReportRenderer(), InventoryReportRenderer())
allowedLicensesFile = File("$projectDir/buildSrc/akseptable-lisenser.json")
}
subprojects.forEach { sub ->
sub.repositories {
mavenCentral()
maven {
url = uri("https://maven.pkg.github.com/navikt/pensjon-etterlatte-libs")
credentials {
username = "token"
password = System.getenv("GITHUB_TOKEN")
}
}
}
sub.tasks {
withType<Test> {
useJUnitPlatform()
testLogging {
events(TestLogEvent.PASSED, TestLogEvent.SKIPPED, TestLogEvent.FAILED)
exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
}
}
}
}