yokai/build.gradle.kts
Ahmad Ansori Palembani 41a46ba0f8
refactor: Migrate "database migrations" to use SQLDelight (#73)
* chore: Preparing SQLDelight

* chore: Specify some config for SQLDelight

* fix: Commit the thing bruh

* refactor: Migrate (some) sql to SQLDelight

* refactor: Migrate the rest of sql migration to SQLDelight

* chore: Update SQLite to v3.45.0

* refactor: Retrofitting StorIO to work with SQLDelight

* refactor: Removed unnecessary code, already handled by AndroidSqliteDriver

* fix: Database lib too old to use FrameworkSQLiteOpenHelper

* chore: Revert downgrade
2024-06-03 14:00:12 +07:00

42 lines
1.2 KiB
Kotlin

import java.util.*
plugins {
alias(libs.plugins.kotlinter)
alias(libs.plugins.gradle.versions)
alias(kotlinx.plugins.android) apply false
}
buildscript {
dependencies {
classpath(libs.gradle)
classpath(libs.google.services)
classpath(kotlinx.gradle)
classpath(libs.oss.licenses.plugin)
classpath(kotlinx.serialization.gradle)
classpath(libs.firebase.crashlytics.gradle)
classpath(libs.sqldelight.gradle)
}
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
}
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)
}