build.gradle.kts 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. import org.jetbrains.kotlin.gradle.dsl.JvmTarget
  2. import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
  3. import utils.LocalProperties
  4. LocalProperties.init(project.rootProject)
  5. buildscript {
  6. dependencies {
  7. classpath(libs.kotlin.gradle)
  8. classpath(libs.android.gradle)
  9. // Huawei agconnect plugin
  10. classpath("com.huawei.agconnect:agcp-1.9.1.303")
  11. classpath("com.huawei.agconnect:agconnect-crash-symbol-lib-1.9.1.301")
  12. classpath("com.huawei.agconnect:agconnect-apms-plugin-1.6.2.300")
  13. classpath("com.huawei.agconnect:agconnect-core-1.9.1.301@aar")
  14. }
  15. }
  16. plugins {
  17. alias(libs.plugins.ktlint)
  18. alias(libs.plugins.compose.compiler) apply false
  19. }
  20. allprojects {
  21. group = "ch.threema"
  22. }
  23. tasks.wrapper {
  24. distributionType = Wrapper.DistributionType.ALL
  25. }
  26. subprojects {
  27. apply(plugin = "org.jlleitschuh.gradle.ktlint")
  28. tasks.withType<KotlinJvmCompile>().configureEach {
  29. compilerOptions {
  30. jvmTarget.set(JvmTarget.JVM_11)
  31. freeCompilerArgs.add("-Xjvm-default=all")
  32. }
  33. }
  34. ktlint {
  35. outputToConsole = true
  36. android = true
  37. filter {
  38. exclude { entry ->
  39. entry.file.path.contains("/build/")
  40. }
  41. }
  42. }
  43. }