This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
forked from msomu/compose-material-dialogs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
68 lines (60 loc) · 2.03 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
65
66
67
68
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("com.diffplug.spotless") version "5.14.1"
id("org.jetbrains.dokka") version "1.5.0"
}
buildscript {
repositories {
google()
mavenCentral()
maven { url = uri("https://dl.bintray.com/kotlin/kotlin-eap") }
maven { url = uri("https://plugins.gradle.org/m2/") }
}
dependencies {
classpath(Dependencies.Kotlin.gradlePlugin)
classpath("com.android.tools.build:gradle:7.1.0-alpha05")
classpath("com.vanniktech:gradle-maven-publish-plugin:0.17.0")
classpath("org.jetbrains.dokka:dokka-gradle-plugin:1.5.0")
classpath("com.karumi:shot:5.10.6")
}
}
allprojects {
repositories {
google()
mavenCentral()
gradlePluginPortal()
maven { url = uri("https://dl.bintray.com/kotlin/kotlin-eap") }
maven { url = uri("https://kotlin.bintray.com/kotlinx/") }
maven { url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots") }
}
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
}
}
}