mirror of
https://github.com/Suwayomi/TachideskJUI.git
synced 2025-12-10 14:52:03 +01:00
Build.gradle.kts cleanup
This commit is contained in:
@@ -2,6 +2,7 @@ import Config.migrationCode
|
|||||||
import Config.serverCode
|
import Config.serverCode
|
||||||
import Config.tachideskVersion
|
import Config.tachideskVersion
|
||||||
import com.codingfeline.buildkonfig.compiler.FieldSpec.Type
|
import com.codingfeline.buildkonfig.compiler.FieldSpec.Type
|
||||||
|
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
|
||||||
|
|
||||||
@Suppress("DSL_SCOPE_VIOLATION")
|
@Suppress("DSL_SCOPE_VIOLATION")
|
||||||
plugins {
|
plugins {
|
||||||
@@ -46,7 +47,7 @@ tasks.withType<com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
|
|||||||
}
|
}
|
||||||
|
|
||||||
subprojects {
|
subprojects {
|
||||||
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinJvmCompile> {
|
tasks.withType<KotlinJvmCompile> {
|
||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
/*freeCompilerArgs = freeCompilerArgs + listOf(
|
/*freeCompilerArgs = freeCompilerArgs + listOf(
|
||||||
"-Xjvm-default=compatibility",
|
"-Xjvm-default=compatibility",
|
||||||
@@ -55,15 +56,14 @@ subprojects {
|
|||||||
}
|
}
|
||||||
tasks.withType<org.jmailen.gradle.kotlinter.tasks.LintTask> {
|
tasks.withType<org.jmailen.gradle.kotlinter.tasks.LintTask> {
|
||||||
source(files("src"))
|
source(files("src"))
|
||||||
exclude("ca/gosyer/*/build")
|
exclude("ca/gosyer/jui/*/build")
|
||||||
}
|
}
|
||||||
tasks.withType<org.jmailen.gradle.kotlinter.tasks.FormatTask> {
|
tasks.withType<org.jmailen.gradle.kotlinter.tasks.FormatTask> {
|
||||||
source(files("src"))
|
source(files("src"))
|
||||||
exclude("ca/gosyer/*/build")
|
exclude("ca/gosyer/jui/*/build")
|
||||||
}
|
}
|
||||||
plugins.withType<com.android.build.gradle.BasePlugin> {
|
plugins.withType<com.android.build.gradle.BasePlugin> {
|
||||||
configure<com.android.build.gradle.BaseExtension> {
|
configure<com.android.build.gradle.BaseExtension> {
|
||||||
// 32 requires a higher android plugin version
|
|
||||||
compileSdkVersion(33)
|
compileSdkVersion(33)
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdk = 21
|
minSdk = 21
|
||||||
|
|||||||
Reference in New Issue
Block a user