build.gradle 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. plugins {
  2. //d 'com.android.library'
  3. //id 'org.jetbrains.kotlin.android'
  4. alias libs.plugins.android.library
  5. alias libs.plugins.kotlin.android
  6. }
  7. android {
  8. compileSdk = compile_sdk_version
  9. namespace 'com.script'
  10. kotlin {
  11. jvmToolchain {
  12. languageVersion.set(JavaLanguageVersion.of(17))
  13. }
  14. }
  15. defaultConfig {
  16. minSdk 21
  17. targetSdk 35
  18. consumerProguardFiles "consumer-rules.pro"
  19. }
  20. compileOptions {
  21. sourceCompatibility JavaVersion.VERSION_17
  22. targetCompatibility JavaVersion.VERSION_17
  23. }
  24. lint {
  25. checkDependencies true
  26. }
  27. tasks.withType(JavaCompile).tap {
  28. configureEach {
  29. options.compilerArgs << "-Xlint:deprecation"
  30. }
  31. }
  32. }
  33. dependencies {
  34. // api(fileTree(dir: 'lib', include: ['rhino-1.7.14.jar']))
  35. api libs.mozilla.rhino
  36. implementation(libs.kotlinx.coroutines.core)
  37. // def coroutines_version = '1.7.3'
  38. // implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version")
  39. }