This repository has been archived by the owner on Sep 5, 2023. It is now read-only.
forked from PranavMaganti/compose-material-dialogs
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
60 lines (54 loc) · 1.75 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 org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import java.io.FileInputStream
buildscript {
repositories {
gradlePluginPortal()
google()
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
}
plugins {
kotlin("jvm").apply(false)
kotlin("multiplatform").apply(false)
kotlin("android").apply(false)
id("com.android.application").apply(false)
id("com.android.library").apply(false)
id("org.jetbrains.compose").apply(false)
}
allprojects {
repositories {
google()
mavenCentral()
gradlePluginPortal()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
maven {
name = "GithubPackages"
url = uri("https://maven.pkg.github.com/Qawaz/compose-datetime")
credentials {
username = (System.getenv("GPR_USER"))!!.toString()
password = (System.getenv("GPR_API_KEY"))!!.toString()
}
}
}
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"
)
}
}
}
subprojects {
tasks.withType<Test> {
testLogging {
showStandardStreams = true
}
}
}