forked from PatilShreyas/Capturable
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
44 lines (41 loc) · 1.32 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
agpVersion = '8.2.2'
kotlinVersion = '1.9.22'
dokkaVersion = '1.9.20'
coroutinesVersion = '1.8.1'
androidCoreVersion = '1.13.1'
composeCompilerVersion = '1.5.8'
composeBomVersion = '2024.05.00'
jUnitVersion = '4.13.2'
androidJUnitTestVersion = '1.2.1'
spotlessVersion = '6.25.0'
mavenPublishVersion = '0.28.0'
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:$agpVersion"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "com.vanniktech:gradle-maven-publish-plugin:$mavenPublishVersion"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokkaVersion"
}
}
plugins {
id 'com.diffplug.spotless' version "$spotlessVersion"
}
subprojects {
apply plugin: 'com.diffplug.spotless'
spotless {
kotlin {
target '**/*.kt'
targetExclude("$buildDir/**/*.kt")
targetExclude('bin/**/*.kt')
ktlint().editorConfigOverride(["android": "true"])
licenseHeaderFile rootProject.file('spotless/copyright.kt')
}
}
}