Files
jellyfin-androidtv/build.gradle.kts
Niels van Velzen 346c21c0b4 Migrate to AGP9
2026-01-17 13:27:28 +01:00

54 lines
1.1 KiB
Kotlin

plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.detekt)
java
}
buildscript {
dependencies {
classpath(libs.kotlin.gradle)
}
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(libs.versions.java.jdk.get()))
}
}
detekt {
buildUponDefaultConfig = true
ignoreFailures = true
config.setFrom(files("$rootDir/detekt.yaml"))
basePath = rootDir.absolutePath
parallel = true
source.setFrom(fileTree(projectDir) {
include("**/*.kt", "**/*.kts")
})
}
tasks.withType<io.gitlab.arturbosch.detekt.Detekt> {
reports {
sarif.required.set(true)
}
}
tasks.withType<Test> {
// Ensure Junit emits the full stack trace when a unit test fails through gradle
useJUnit()
testLogging {
events(
org.gradle.api.tasks.testing.logging.TestLogEvent.FAILED,
org.gradle.api.tasks.testing.logging.TestLogEvent.STANDARD_ERROR,
org.gradle.api.tasks.testing.logging.TestLogEvent.SKIPPED
)
exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
showExceptions = true
showCauses = true
showStackTraces = true
}
}