mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
07e18914e8
使用version catalog 更新kotlin 1.9.23 ksp 1.0.19
44 lines
1.0 KiB
Groovy
44 lines
1.0 KiB
Groovy
plugins {
|
|
//d 'com.android.library'
|
|
//id 'org.jetbrains.kotlin.android'
|
|
alias libs.plugins.android.library
|
|
alias libs.plugins.kotlin.android
|
|
}
|
|
|
|
android {
|
|
compileSdk = compile_sdk_version
|
|
namespace 'com.script'
|
|
kotlin {
|
|
jvmToolchain {
|
|
languageVersion.set(JavaLanguageVersion.of(17))
|
|
}
|
|
}
|
|
defaultConfig {
|
|
minSdk 21
|
|
targetSdk 34
|
|
|
|
consumerProguardFiles "consumer-rules.pro"
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
targetCompatibility JavaVersion.VERSION_17
|
|
}
|
|
lint {
|
|
checkDependencies true
|
|
}
|
|
tasks.withType(JavaCompile).tap {
|
|
configureEach {
|
|
options.compilerArgs << "-Xlint:deprecation"
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
api(fileTree(dir: 'lib', include: ['rhino-1.7.13-2.jar']))
|
|
|
|
implementation(libs.kotlinx.coroutines.core)
|
|
|
|
// def coroutines_version = '1.7.3'
|
|
// implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version")
|
|
} |