-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
61 lines (49 loc) · 1.92 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
61
import com.adamkobus.vm.Libs
apply plugin: "io.github.gradle-nexus.publish-plugin"
apply plugin: "com.github.ben-manes.versions"
buildscript {
ext {
// https://github.com/JLLeitschuh/ktlint-gradle/releases
ktlintPluginVersion = "10.3.0"
// https://github.com/detekt/detekt/releases
detektPluginVersion = "1.21.0"
// https://github.com/ben-manes/gradle-versions-plugin/releases
versionsPluginVersion = "0.42.0"
// https://github.com/gradle-nexus/publish-plugin/releases
publishPluginVersion = "1.1.0"
// https://developer.android.com/studio/releases/gradle-plugin
androidGradlePluginVersion = "7.2.2"
// https://kotlinlang.org/docs/releases.html#release-details
kotlinVersion = "1.7.10"
}
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
dependencies {
classpath "com.android.tools.build:gradle:$androidGradlePluginVersion"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "org.jlleitschuh.gradle:ktlint-gradle:$ktlintPluginVersion"
classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:$detektPluginVersion"
classpath "com.github.ben-manes:gradle-versions-plugin:$versionsPluginVersion"
classpath "io.github.gradle-nexus:publish-plugin:$publishPluginVersion"
classpath "com.google.dagger:hilt-android-gradle-plugin:${Libs.HILT_VERSION}"
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
allprojects {
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
kotlinOptions {
freeCompilerArgs += [
'-progressive',
"-opt-in=kotlin.RequiresOptIn"
]
}
}
}
apply from: "gradle/dependency-updates.gradle"
apply from: "gradle/android-setup.gradle"
apply from: "gradle/publishing-root.gradle"