// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { ext.kotlin_version = '1.6.10' repositories { google() maven { url "https://plugins.gradle.org/m2/" } } dependencies { classpath 'com.android.tools.build:gradle:7.0.4' classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8' classpath 'com.google.gms:google-services:4.3.10' classpath 'com.google.firebase:firebase-crashlytics-gradle:2.8.1' classpath "io.realm:realm-gradle-plugin:10.8.1" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.19.0" classpath "androidx.navigation:navigation-safe-args-gradle-plugin:2.3.5" classpath 'com.google.firebase:perf-plugin:1.4.0' } } apply plugin: 'io.gitlab.arturbosch.detekt' allprojects { repositories { google() jcenter() } } detekt { input = files("Habitica/src/main/java") config = files("detekt.yml") baseline = file("${rootProject.projectDir}/detekt_baseline.xml") reports { xml { enabled = true destination = file("build/reports/detekt.xml") } html { enabled = true destination = file("build/reports/detekt.html") } sarif { enabled = true destination = file("build/reports/detekt.sarif") } } }