// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { ext.kotlin_version = "1.6.10" ext.detekt_version = "1.19.0" repositories { mavenCentral() google() maven { url "https://plugins.gradle.org/m2/" } } dependencies { classpath 'com.android.tools.build:gradle:7.0.4' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath "org.jlleitschuh.gradle:ktlint-gradle:10.2.1" } } plugins { id "io.gitlab.arturbosch.detekt" version "$detekt_version" } allprojects { repositories { mavenCentral() google() } } task clean(type: Delete) { delete rootProject.buildDir } task unitTests(dependsOn: ["app:testDebugUnitTest", "core:test", "network:test"]){ group = 'Tests' description = 'Run all unit tests' } task robolectricTests(dependsOn: ["app:testDebugUnitTest"]){ group = 'Tests' description = 'Run all robolectric tests' } task androidTests(dependsOn: ["app:connectedDebugAndroidTest"]){ group = 'Tests' description = 'Run all Android tests' } apply from: 'gradlescripts/versions.gradle' apply from: 'gradlescripts/detekt.config.gradle' apply from: 'gradlescripts/ktlint.gradle' apply from: 'gradlescripts/lint.gradle' apply from: 'gradlescripts/testoptions.gradle'