// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { ext.kotlin_version = "1.7.10" ext.detekt_version = "1.19.0" ext.navigation_version = "2.4.2" ext.hilt_version = "2.44" ext.compose_compiler_version = "1.3.1" ext.compileSdkVersion = 32 ext.minSdkVersion = 21 ext.targetSdkVersion = 32 repositories { mavenCentral() google() maven { url "https://plugins.gradle.org/m2/" } } dependencies { classpath 'com.android.tools.build:gradle:7.3.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$navigation_version" classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_version" classpath "org.jlleitschuh.gradle:ktlint-gradle:10.2.1" classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:$detekt_version" } } allprojects { repositories { mavenCentral() google() maven { url "https://maven.pkg.github.com/fknives/AndroidTest-ShowCase" credentials { username = project.findProperty("GITHUB_USERNAME") ?: System.getenv("GITHUB_USERNAME") password = project.findProperty("GITHUB_TOKEN") ?: System.getenv("GITHUB_TOKEN") } // https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token } } } task clean(type: Delete) { delete rootProject.buildDir } 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' apply from: 'gradlescripts/test.tasks.gradle' apply from: 'gradlescripts/testdependencies.gradle' apply from: 'gradlescripts/disable.test.task.gradle'