1 Star 0 Fork 2

Tank/jellyfin-androidtv

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle.kts 1.43 KB
一键复制 编辑 原始数据 按行查看 历史
plugins {
alias(libs.plugins.detekt)
java
}
buildscript {
dependencies {
classpath(libs.android.gradle)
classpath(libs.kotlin.gradle)
}
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of("17"))
}
}
subprojects {
// Configure linting
apply<io.gitlab.arturbosch.detekt.DetektPlugin>()
detekt {
buildUponDefaultConfig = true
ignoreFailures = true
config = files("$rootDir/detekt.yaml")
basePath = rootDir.absolutePath
reports {
sarif.enabled = true
}
}
// Configure default Kotlin compiler options
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile> {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
}
}
// Configure default Android options
plugins.withType<com.android.build.gradle.BasePlugin> {
configure<com.android.build.gradle.BaseExtension> {
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
}
}
}
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
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Android
1
https://gitee.com/dhysf/jellyfin-androidtv.git
git@gitee.com:dhysf/jellyfin-androidtv.git
dhysf
jellyfin-androidtv
jellyfin-androidtv
master

搜索帮助