forked from skydoves/Orchestra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
40 lines (33 loc) · 1023 Bytes
/
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
import com.skydoves.orchestra.Dependencies
apply plugin: 'io.github.gradle-nexus.publish-plugin'
apply plugin: 'org.jetbrains.dokka'
buildscript {
repositories {
google()
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath Dependencies.androidGradlePlugin
classpath Dependencies.kotlinGradlePlugin
classpath Dependencies.spotlessGradlePlugin
classpath Dependencies.gradleNexusPublishPlugin
classpath Dependencies.dokka
classpath Dependencies.kotlinBinaryValidator
}
}
subprojects {
apply from: "$rootDir/spotless.gradle"
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach { compile ->
kotlinOptions {
// set JVM target to 1.8
jvmTarget = "1.8"
// set compiler options
freeCompilerArgs += "-Xopt-in=androidx.compose.foundation.ExperimentalFoundationApi"
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
apply from: "${rootDir}/scripts/publish-root.gradle"