48 lines
No EOL
1.8 KiB
Groovy
48 lines
No EOL
1.8 KiB
Groovy
// 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"
|
|
ext.navigation_version = "2.4.2"
|
|
ext.hilt_version = "2.40.5"
|
|
repositories {
|
|
mavenCentral()
|
|
google()
|
|
maven { url "https://plugins.gradle.org/m2/" }
|
|
}
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:7.1.3'
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
classpath "org.jlleitschuh.gradle:ktlint-gradle:10.2.1"
|
|
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$navigation_version"
|
|
classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_version"
|
|
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' |