0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-20 12:02:16 +02:00
Anki-Android/lint-rules/build.gradle
Brayan Oliveira 8f9f8c2261 Use JUnit5 on tests
1. Extract JUnit version to a constant, so all 3 testImplementations uses the same version
2. Add JUnitPlatform use to `build.gradle`
3. Fix imports to `kotlin.test.junit5.JUnit5Asserter`
4. Fix `AbstractFlashcardViewerTest.getSignalFromUrlTest`
- It is currently the only parameterized test that uses jupiter-params. It wasn't being discovered before, so it haven't raised any exception.
- Now that it's discovered, it needed to be fixed
2022-05-01 19:13:49 -05:00

27 lines
899 B
Groovy

apply plugin: "java-library"
apply plugin: 'kotlin'
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
repositories {
google()
mavenCentral()
}
dependencies {
compileOnly "com.android.tools.lint:lint-api:$lint_version"
compileOnly "com.android.tools.lint:lint:$lint_version"
testImplementation "org.hamcrest:hamcrest:$hamcrest_version"
testImplementation "org.hamcrest:hamcrest-library:$hamcrest_version"
testImplementation "org.junit.jupiter:junit-jupiter:$junit_version"
testImplementation "org.junit.vintage:junit-vintage-engine:$junit_version"
testImplementation "com.android.tools.lint:lint:$lint_version"
testImplementation "com.android.tools.lint:lint-api:$lint_version"
testImplementation "com.android.tools.lint:lint-tests:$lint_version"
}
apply from: "./kotlinMigration-lint.gradle"