mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-13 18:27:00 +05:30
65 lines
1.7 KiB
Kotlin
65 lines
1.7 KiB
Kotlin
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
buildscript {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
gradlePluginPortal()
|
|
maven {
|
|
url = uri("https://storage.googleapis.com/r8-releases/raw")
|
|
content { includeModule("com.android.tools", "r8") }
|
|
}
|
|
}
|
|
dependencies {
|
|
classpath("com.android.tools:r8:3.1.17-dev")
|
|
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.31")
|
|
classpath("com.android.tools.build:gradle:7.1.0-alpha12")
|
|
classpath("com.diffplug.spotless:spotless-plugin-gradle:5.15.0")
|
|
classpath("com.google.dagger:hilt-android-gradle-plugin:2.38.1")
|
|
}
|
|
}
|
|
|
|
group = "dev.msfjarvis.claw"
|
|
|
|
version = "1.0"
|
|
|
|
apply(plugin = "com.diffplug.spotless")
|
|
|
|
configure<com.diffplug.gradle.spotless.SpotlessExtension> {
|
|
kotlin {
|
|
target("**/*.kt")
|
|
targetExclude("**/build/**")
|
|
ktfmt("0.28").googleStyle()
|
|
}
|
|
kotlinGradle {
|
|
target("**/*.gradle.kts")
|
|
ktfmt("0.28").googleStyle()
|
|
}
|
|
format("xml") {
|
|
target("**/*.xml")
|
|
targetExclude("**/build/**", ".idea/**")
|
|
prettier(mapOf("prettier" to "2.3.2", "@prettier/plugin-xml" to "1.0.2"))
|
|
.config(mapOf("parser" to "xml", "tabWidth" to 2))
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
tasks.withType<KotlinCompile>().configureEach {
|
|
kotlinOptions {
|
|
jvmTarget = JavaVersion.VERSION_11.toString()
|
|
languageVersion = "1.5"
|
|
freeCompilerArgs =
|
|
freeCompilerArgs +
|
|
listOf(
|
|
"-Xopt-in=kotlin.RequiresOptIn",
|
|
"-P",
|
|
"plugin:androidx.compose.compiler.plugins.kotlin:suppressKotlinVersionCompatibilityCheck=true"
|
|
)
|
|
}
|
|
}
|
|
}
|
|
|
|
tasks.withType<Wrapper> {
|
|
gradleVersion = "7.2"
|
|
distributionSha256Sum = "f581709a9c35e9cb92e16f585d2c4bc99b2b1a5f85d2badbd3dc6bff59e1e6dd"
|
|
}
|