forked from PranavMaganti/compose-material-dialogs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
64 lines (56 loc) · 1.72 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
61
62
63
64
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("com.diffplug.spotless") version "6.0.4"
id("org.jetbrains.dokka") version "1.6.0"
}
buildscript {
repositories {
google()
mavenCentral()
maven("https://plugins.gradle.org/m2/")
}
dependencies {
classpath(Dependencies.Kotlin.gradlePlugin)
classpath("com.android.tools.build:gradle:7.4.0-alpha02")
classpath("com.vanniktech:gradle-maven-publish-plugin:0.19.0")
classpath("org.jetbrains.dokka:dokka-gradle-plugin:1.6.21")
classpath(Dependencies.Shot.core)
}
}
allprojects {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
tasks.withType<KotlinCompile>().all {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = freeCompilerArgs + listOf(
"-Xopt-in=androidx.compose.material.ExperimentalMaterialApi",
"-Xopt-in=androidx.compose.animation.ExperimentalAnimationApi",
"-Xopt-in=androidx.compose.ui.test.ExperimentalTestApi",
"-Xopt-in=androidx.compose.foundation.ExperimentalFoundationApi",
"-Xopt-in=androidx.compose.ui.ExperimentalComposeUiApi",
"-Xopt-in=com.google.accompanist.pager.ExperimentalPagerApi"
)
}
}
}
tasks.dokkaHtmlMultiModule.configure {
outputDirectory.set(projectDir.resolve("docs/api"))
}
subprojects {
plugins.apply("com.diffplug.spotless")
spotless {
kotlin {
target("**/*.kt")
ktlint(Dependencies.Ktlint.version)
}
}
tasks.withType<Test> {
testLogging {
showStandardStreams = true
}
}
}