48 lines
1.2 KiB
Plaintext
48 lines
1.2 KiB
Plaintext
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
plugins {
|
|
`kotlin-dsl`
|
|
}
|
|
|
|
group = "buildlogic"
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
tasks.withType<KotlinCompile>().configureEach {
|
|
kotlinOptions {
|
|
jvmTarget = JavaVersion.VERSION_17.toString()
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly(libs.android.gradlePlugin)
|
|
compileOnly(libs.kotlin.gradlePlugin)
|
|
compileOnly(libs.ksp.gradlePlugin)
|
|
}
|
|
|
|
gradlePlugin {
|
|
plugins {
|
|
register("hiltPlugin") {
|
|
id = "looker.hilt"
|
|
implementationClass = "AndroidHiltPlugin"
|
|
}
|
|
register("hiltWorkPlugin") {
|
|
id = "looker.hilt.work"
|
|
implementationClass = "AndroidHiltWorkerPlugin"
|
|
}
|
|
register("roomPlugin") {
|
|
id = "looker.room"
|
|
implementationClass = "AndroidRoomPlugin"
|
|
}
|
|
register("androidApplicationPlugin") {
|
|
id = "looker.android.application"
|
|
implementationClass = "AndroidApplicationPlugin"
|
|
}
|
|
register("androidLibraryPlugin") {
|
|
id = "looker.android.library"
|
|
implementationClass = "AndroidLibraryPlugin"
|
|
}
|
|
}
|
|
} |