build.gradle.kts 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. plugins {
  2. `kotlin-dsl`
  3. }
  4. repositories {
  5. google()
  6. mavenCentral()
  7. }
  8. dependencies {
  9. implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.22")
  10. implementation("com.android.tools.build:gradle:8.1.3")
  11. }
  12. val compileKotlin: org.jetbrains.kotlin.gradle.tasks.KotlinCompile by tasks
  13. compileKotlin.kotlinOptions {
  14. jvmTarget = "17"
  15. }
  16. configurations.all {
  17. resolutionStrategy.force("androidx.fragment:fragment:1.5.4")
  18. resolutionStrategy.force("androidx.fragment:fragment-ktx:1.5.4")
  19. resolutionStrategy.force("androidx.transition:transition:1.4.1")
  20. resolutionStrategy.force("org.jetbrains.kotlin:kotlin-stdlib:1.8.22")
  21. resolutionStrategy.force("org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.22")
  22. resolutionStrategy.force("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.22")
  23. resolutionStrategy.force("org.jetbrains.kotlin:kotlin-reflect:1.8.22")
  24. resolutionStrategy.force("org.jetbrains:annotations:23.0.0")
  25. resolutionStrategy.force("org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.7.1")
  26. resolutionStrategy.force("com.google.code.gson:gson:2.10.1")
  27. resolutionStrategy.force("com.google.dagger:dagger:2.45")
  28. resolutionStrategy.force("com.squareup:javapoet:1.13.0")
  29. resolutionStrategy.force("com.squareup:javawriter:2.5.0")
  30. }