* Upgrade the used JDK in the project to v21 * Use it for CI too * Centralise java language version * Fix deprecations, tests and lint issues * Fix coverage taking into account `@Preview` annotated code. --------- Co-authored-by: Benoit Marty <benoit@matrix.org>
29 lines
586 B
Kotlin
29 lines
586 B
Kotlin
/*
|
|
* Copyright 2022-2024 New Vector Ltd.
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
* Please see LICENSE in the repository root for full details.
|
|
*/
|
|
plugins {
|
|
id("java-library")
|
|
id("com.android.lint")
|
|
alias(libs.plugins.kotlin.jvm)
|
|
}
|
|
|
|
java {
|
|
sourceCompatibility = Versions.javaVersion
|
|
targetCompatibility = Versions.javaVersion
|
|
}
|
|
|
|
kotlin {
|
|
jvmToolchain {
|
|
languageVersion = Versions.javaLanguageVersion
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(libs.coroutines.core)
|
|
testImplementation(libs.test.junit)
|
|
testImplementation(libs.test.truth)
|
|
}
|