-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
53 lines (45 loc) · 1.29 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:7.0.3"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.31"
classpath 'com.google.gms:google-services:4.3.10'
// Androidx Navigation
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:2.4.0-beta01"
// Hilt
classpath 'com.google.dagger:hilt-android-gradle-plugin:2.40'
}
}
plugins {
id "io.gitlab.arturbosch.detekt" version "1.18.1"
id "org.jlleitschuh.gradle.ktlint" version "10.2.0"
}
subprojects {
apply plugin: "org.jlleitschuh.gradle.ktlint"
apply plugin: 'dagger.hilt.android.plugin'
detekt {
toolVersion = "1.18.1"
config = files("../detekt-config.yml")
}
}
task copyGitHooks(type: Copy) {
from("/teamConfig/git/git-hooks/") {
include '**/*'
rename '(.*)', '$1'
}
into "/.git/hooks"
}
task installGitHooks(type: Exec) {
group 'git hooks'
workingDir rootDir
commandLine 'chmod'
args '-R', '+x', '.git/hooks/'
dependsOn copyGitHooks
}
task clean(type: Delete) {
delete rootProject.buildDir
}