build.gradle 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. group = "com.example.my_feature_module"
  2. version = "1.0-SNAPSHOT"
  3. buildscript {
  4. ext.kotlin_version = "2.2.20"
  5. repositories {
  6. google()
  7. mavenCentral()
  8. }
  9. dependencies {
  10. classpath("com.android.tools.build:gradle:8.11.1")
  11. classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version")
  12. }
  13. }
  14. allprojects {
  15. repositories {
  16. google()
  17. mavenCentral()
  18. }
  19. }
  20. apply plugin: "com.android.library"
  21. apply plugin: "kotlin-android"
  22. android {
  23. namespace = "com.example.my_feature_module"
  24. compileSdk = 36
  25. compileOptions {
  26. sourceCompatibility = JavaVersion.VERSION_17
  27. targetCompatibility = JavaVersion.VERSION_17
  28. }
  29. kotlinOptions {
  30. jvmTarget = JavaVersion.VERSION_17
  31. }
  32. sourceSets {
  33. main.java.srcDirs += "src/main/kotlin"
  34. test.java.srcDirs += "src/test/kotlin"
  35. }
  36. defaultConfig {
  37. minSdk = 24
  38. }
  39. dependencies {
  40. testImplementation("org.jetbrains.kotlin:kotlin-test")
  41. testImplementation("org.mockito:mockito-core:5.0.0")
  42. }
  43. testOptions {
  44. unitTests.all {
  45. useJUnitPlatform()
  46. testLogging {
  47. events "passed", "skipped", "failed", "standardOut", "standardError"
  48. outputs.upToDateWhen {false}
  49. showStandardStreams = true
  50. }
  51. }
  52. }
  53. }