forked from AdamMc331/TOA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
94 lines (78 loc) · 2.77 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
// https://developer.android.com/jetpack/androidx/releases/compose
compose_version = "1.1.1"
// https://github.com/JLLeitschuh/ktlint-gradle/releases
ktlintPluginVersion = "10.2.0"
// https://github.com/detekt/detekt/releases
detektVersion = "1.19.0"
// https://developer.android.com/jetpack/androidx/releases/hilt
hiltVersion = libs.versions.hilt.get()
kotlinVersion = "1.9.0"
// https://github.com/ben-manes/gradle-versions-plugin
versionsPluginVersion = "0.29.0"
// https://github.com/Kotlin/kotlinx-kover/releases
koverVersion = "0.4.1"
ext.jacocoAndroidVersion = "0.2"
ext.coverallsVersion = "2.12.0"
}
repositories {
google()
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.android.tools.build:gradle:8.1.1"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "org.jlleitschuh.gradle:ktlint-gradle:$ktlintPluginVersion"
classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:$detektVersion"
classpath "com.google.dagger:hilt-android-gradle-plugin:$hiltVersion"
classpath "com.github.ben-manes:gradle-versions-plugin:$versionsPluginVersion"
classpath "org.jetbrains.kotlinx:kover:$koverVersion"
classpath "gradle.plugin.org.kt3k.gradle.plugin:coveralls-gradle-plugin:$coverallsVersion"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
plugins {
id "com.mxalbert.gradle.jacoco-android" version "0.2.0" apply false
}
apply from: "buildscripts/git-hooks.gradle"
apply from: "buildscripts/versions.gradle"
allprojects {
repositories {
google()
mavenCentral()
maven {
url "https://jitpack.io"
}
maven {
url("https://packages.jetbrains.team/maven/p/ij/intellij-dependencies")
}
}
}
subprojects {
apply from: "../buildscripts/ktlint.gradle"
apply from: "../buildscripts/detekt.gradle"
apply from: "../buildscripts/versionsplugin.gradle"
apply from: "../buildscripts/kover.gradle"
afterEvaluate {
gradle.projectsEvaluated {
tasks.withType(JavaCompile.class).tap {
configureEach {
sourceCompatibility = "17"
targetCompatibility = "17"
}
}
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
afterEvaluate {
tasks['clean'].dependsOn installGitHooks
}