forked from vinchamp77/AndroidNews
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
39 lines (34 loc) · 1.12 KB
/
build.gradle
File metadata and controls
39 lines (34 loc) · 1.12 KB
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
buildscript {
ext {
//Note: this doesn't work anymore, so specify the version directly instead for now
//android_gradle_plugin_version = '8.5.1'
}
}// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.5.1' apply false
id 'com.android.library' version '8.5.1' apply false
id 'org.jetbrains.kotlin.android' version '1.9.10' apply false
//https://github.com/google/ksp/releases
id 'com.google.devtools.ksp' version '1.9.10-1.0.13' apply false
id 'com.diffplug.spotless' version '6.25.0' apply false
}
subprojects {
apply plugin: 'com.diffplug.spotless'
spotless {
kotlin {
target '**/*.kt'
targetExclude("{getLayout()}.getBuildDirectory()/**/*.kt")
ktlint()
licenseHeaderFile rootProject.file('spotless/copyright.kt')
}
groovyGradle {
target '*.gradle'
greclipse()
}
}
afterEvaluate {
tasks.named("preBuild") {
dependsOn("spotlessApply")
}
}
}