build.gradle.kts 928 B

1234567891011121314151617181920212223242526272829
  1. plugins {
  2. kotlin("jvm") version "2.1.0"
  3. }
  4. group = "cn.qqck.kotlin"
  5. version = "1.0-SNAPSHOT"
  6. repositories {
  7. // maven { setUrl("https://maven.aliyun.com/repository/public") } // central仓和jcenter仓的聚合仓
  8. // maven { setUrl("https://maven.aliyun.com/repository/central") } // central仓和jcenter仓的聚合仓
  9. mavenCentral() // 官方仓库作为备用
  10. maven { setUrl("https://jitpack.io") } // 官方仓库作为备用
  11. // maven { setUrl("https://maven.aliyun.com/repository/gradle-plugin") } // 阿里云 Gradle 插件仓库
  12. // maven { setUrl("https://plugins.gradle.org/m2/") } // Gradle 插件仓库
  13. google()
  14. gradlePluginPortal()
  15. }
  16. dependencies {
  17. // https://github.com/Kotlin/kotlinx.coroutines
  18. implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.1")
  19. // https://github.com/square/okhttp
  20. implementation("com.squareup.okhttp3:okhttp:4.12.0")
  21. }