-
-
Notifications
You must be signed in to change notification settings - Fork 39
/
build.gradle
46 lines (43 loc) · 1.43 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
agpVersion = '8.6.1'
kotlinVersion = '2.0.21'
dokkaVersion = '1.9.20'
coroutinesVersion = '1.9.0'
androidCoreVersion = '1.13.1'
composeCompilerVersion = '1.5.8'
composeBomVersion = '2024.10.00'
jUnitVersion = '4.13.2'
mockkVersion = '1.13.13'
androidJUnitTestVersion = '1.2.1'
spotlessVersion = '6.25.0'
mavenPublishVersion = '0.30.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"
id "org.jetbrains.kotlin.plugin.compose" version "$kotlinVersion" apply false
}
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')
}
}
}