-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
64 lines (58 loc) · 1.57 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
mavenCentral()
// gradlePluginPortal()
maven { url "https://jitpack.io" }
}
dependencies {
classpath libs.gradle
classpath libs.kotlin.gradle.plugin
classpath libs.google.services
classpath libs.firebase.crashlytics.gradle
classpath libs.androidx.navigation.safe.args.gradle.plugin
classpath libs.hilt.android.gradle.plugin
classpath libs.oss.licenses.plugin
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
plugins {
alias libs.plugins.diffplug.spotless
alias libs.plugins.google.devtools.ksp apply false
alias libs.plugins.dagger.hilt.android apply false
// id 'jacoco'
// id("com.github.nbaztec.coveralls-jacoco") version "1.2.15"
// id 'jacoco-report-aggregation'
}
apply plugin: 'base'
apply plugin: 'com.diffplug.spotless'
spotless {
format 'misc', {
// define the files to apply `misc` to
target '*.gradle', '*.md', '.gitignore'
// define the steps to apply to those files
trimTrailingWhitespace()
indentWithTabs() // or spaces. Takes an integer argument if you don't like 4
endWithNewline()
}
// java {
// cleanthat()
// googleJavaFormat()
// }
kotlin {
target '**/*.kt'
ktlint()
trimTrailingWhitespace()
indentWithSpaces()
endWithNewline()
}
}
allprojects {
repositories {
google()
maven { url "https://jitpack.io" } //Make sure to add this in your project for uCrop
mavenCentral()
}
}