From 78ce7b659b60f90f307e2f325c014348938d2a1d Mon Sep 17 00:00:00 2001 From: Manuel Fuhr Date: Tue, 18 Oct 2022 22:13:13 +0200 Subject: [PATCH] Enable checkstyle for android The checkstyle gradle plugin works only for java libraries. Android requires additional configuration. --- brouter-routing-app/build.gradle | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/brouter-routing-app/build.gradle b/brouter-routing-app/build.gradle index 3266fd5..71dea8e 100644 --- a/brouter-routing-app/build.gradle +++ b/brouter-routing-app/build.gradle @@ -101,6 +101,16 @@ dependencies { androidTestImplementation 'androidx.work:work-testing:2.7.1' } +check.dependsOn 'checkstyle' + +task checkstyle(type: Checkstyle) { + source 'src' + include '**/*.java' + exclude '**/gen/**' + + classpath = files() +} + task generateProfiles(type: Exec) { commandLine = "../misc/scripts/generate_profile_variants.sh" }