Use Kotlin instead of Groovy for Android build configuration (#2902)
This commit is contained in:
committed by
GitHub
parent
1fa7df3331
commit
8d284cf331
@@ -1,23 +0,0 @@
|
||||
plugins {
|
||||
alias libs.plugins.kotlinter
|
||||
}
|
||||
|
||||
apply plugin: 'java-library'
|
||||
apply plugin: 'kotlin'
|
||||
|
||||
dependencies {
|
||||
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
||||
|
||||
compileOnly libs.lint
|
||||
compileOnly libs.lintApi
|
||||
compileOnly libs.lintChecks
|
||||
compileOnly libs.supportAnnotations
|
||||
|
||||
testImplementation libs.junit
|
||||
testImplementation libs.robolectric
|
||||
testImplementation libs.lintTests
|
||||
}
|
||||
|
||||
kotlin {
|
||||
jvmToolchain(17)
|
||||
}
|
||||
22
platform/android/MapLibreAndroidLint/build.gradle.kts
Normal file
22
platform/android/MapLibreAndroidLint/build.gradle.kts
Normal file
@@ -0,0 +1,22 @@
|
||||
plugins {
|
||||
alias(libs.plugins.kotlinter)
|
||||
`java-library`
|
||||
kotlin("jvm")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
|
||||
|
||||
compileOnly(libs.lint)
|
||||
compileOnly(libs.lintApi)
|
||||
compileOnly(libs.lintChecks)
|
||||
compileOnly(libs.supportAnnotations)
|
||||
|
||||
testImplementation(libs.junit)
|
||||
testImplementation(libs.robolectric)
|
||||
testImplementation(libs.lintTests)
|
||||
}
|
||||
|
||||
kotlin {
|
||||
jvmToolchain(17)
|
||||
}
|
||||
Reference in New Issue
Block a user