-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
60 lines (50 loc) · 1.46 KB
/
build.gradle.kts
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
import com.diffplug.gradle.spotless.SpotlessExtension
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
val kotlinVersion = "1.8.10"
kotlin("android") version kotlinVersion apply false
kotlin("multiplatform") version kotlinVersion apply false
kotlin("plugin.serialization") version kotlinVersion apply false
id("org.jetbrains.compose") version "1.4.1" apply false
id("dev.icerock.mobile.multiplatform-resources") version "0.23.0" apply false
id("com.diffplug.spotless") version "6.19.0"
}
buildscript {
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:8.0.0")
}
}
allprojects {
group = "fr.outadoc.woolly"
version = "1.0.0"
repositories {
mavenCentral()
google()
maven { url = uri("https://maven.pkg.jetbrains.space/public/p/compose/dev") }
maven { url = uri("https://nexus.outadoc.fr/repository/public") }
maven { url = uri("https://jitpack.io") }
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xopt-in=kotlin.RequiresOptIn")
}
}
}
configure<SpotlessExtension> {
format("misc") {
target(
"**/*.kt",
"**/*.kts",
"**/*.md",
"**/.gitignore"
)
trimTrailingWhitespace()
indentWithSpaces()
endWithNewline()
}
}