2023-02-04 19:58:53 +01:00
|
|
|
plugins {
|
|
|
|
alias(libs.plugins.android.application) apply false
|
2023-06-29 18:37:46 +02:00
|
|
|
alias(libs.plugins.google.ksp) apply false
|
2024-05-10 15:55:07 +02:00
|
|
|
alias(libs.plugins.hilt.android) apply false
|
2023-02-04 19:58:53 +01:00
|
|
|
alias(libs.plugins.kotlin.android) apply false
|
|
|
|
alias(libs.plugins.kotlin.parcelize) apply false
|
|
|
|
alias(libs.plugins.ktlint) apply false
|
2017-01-03 02:37:38 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
allprojects {
|
2023-02-04 19:58:53 +01:00
|
|
|
apply plugin: libs.plugins.ktlint.get().pluginId
|
2023-02-25 20:59:39 +01:00
|
|
|
|
|
|
|
plugins.withType(JavaBasePlugin).configureEach {
|
|
|
|
java {
|
2024-02-23 12:28:13 +01:00
|
|
|
toolchain.languageVersion = JavaLanguageVersion.of(21)
|
2023-02-25 20:59:39 +01:00
|
|
|
}
|
|
|
|
}
|
2024-05-10 15:55:07 +02:00
|
|
|
|
|
|
|
// Required for Hilt to use the toolchain
|
|
|
|
tasks.withType(JavaCompile).configureEach {
|
|
|
|
javaCompiler = javaToolchains.compilerFor {
|
|
|
|
languageVersion = JavaLanguageVersion.of(21)
|
|
|
|
}
|
|
|
|
}
|
2017-01-03 02:37:38 +01:00
|
|
|
}
|
|
|
|
|
2023-02-04 19:58:53 +01:00
|
|
|
tasks.register('clean') {
|
2023-08-25 04:20:18 +02:00
|
|
|
delete layout.buildDirectory
|
2017-01-03 02:37:38 +01:00
|
|
|
}
|