mirror of
https://github.com/null2264/yokai.git
synced 2025-06-20 10:14:50 +00:00
Co-authored-by: AntsyLich <59261191+antsylich@users.noreply.github.com>
35 lines
1.3 KiB
Kotlin
35 lines
1.3 KiB
Kotlin
import com.android.build.gradle.BaseExtension
|
|
import com.android.build.gradle.BasePlugin
|
|
import org.gradle.api.tasks.testing.logging.TestLogEvent
|
|
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
import java.util.*
|
|
|
|
plugins {
|
|
alias(libs.plugins.kotlinter)
|
|
alias(libs.plugins.gradle.versions)
|
|
alias(kotlinx.plugins.serialization) apply false
|
|
alias(libs.plugins.aboutlibraries) apply false
|
|
alias(libs.plugins.firebase.crashlytics) apply false
|
|
alias(libs.plugins.google.services) apply false
|
|
alias(libs.plugins.moko) apply false
|
|
alias(libs.plugins.sqldelight) apply false
|
|
}
|
|
|
|
tasks.named("dependencyUpdates", com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask::class.java).configure {
|
|
rejectVersionIf {
|
|
val stableKeyword = listOf("RELEASE", "FINAL", "GA").any { candidate.version.uppercase(Locale.ROOT).contains(it) }
|
|
val regex = "^[0-9,.v-]+(-r)?$".toRegex()
|
|
val isStable = stableKeyword || regex.matches(candidate.version)
|
|
isStable.not()
|
|
}
|
|
// optional parameters
|
|
checkForGradleUpdate = true
|
|
outputFormatter = "json"
|
|
outputDir = "build/dependencyUpdates"
|
|
reportfileName = "report"
|
|
}
|
|
|
|
tasks.register("clean", Delete::class) {
|
|
delete(rootProject.layout.buildDirectory)
|
|
}
|