-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
60 lines (52 loc) · 1.71 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
54
55
56
57
58
59
60
import uk.gov.hmrc.components.buildsrc.Kotlin
import uk.gov.hmrc.components.buildsrc.Gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
compose_version = '1.5.4'
kotlin_version = Kotlin.version
navigation_safe_args = '2.6.0-alpha06'
}
repositories {
google()
maven {
url "https://plugins.gradle.org/m2/"
}
maven {
url = uri("https://maven.pkg.github.com/hmrc/mobile-gradle-plugins")
credentials {
username = System.getenv("GITHUB_USER_NAME")
password = System.getenv("GITHUB_TOKEN")
}
}
}
dependencies {
classpath "com.android.tools.build:gradle:${Gradle.version}"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${Kotlin.version}"
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$navigation_safe_args"
classpath 'com.google.dagger:hilt-android-gradle-plugin:2.44.2'
classpath "uk.gov.hmrc.gradle:spotless:1.1.1"
classpath 'com.karumi:shot:5.7.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
plugins {
id 'io.gitlab.arturbosch.detekt' version '1.18.1'
id "org.jetbrains.kotlin.android" version "$kotlin_version" apply false
}
allprojects {
repositories {
google()
maven {
url "https://plugins.gradle.org/m2/"
}
}
}
subprojects {
tasks.withType(Javadoc).all { enabled = false }
group = 'uk.gov.hmrc.components'
}
task clean(type: Delete) {
delete rootProject.buildDir
}