-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
49 lines (43 loc) · 1.21 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
`kotlin-dsl`
}
repositories {
gradlePluginPortal()
mavenCentral()
google()
if (findProperty("project.enableSnapshots") == "true") {
maven("https://oss.sonatype.org/content/repositories/snapshots")
}
}
dependencies {
implementation("com.android.tools.build:gradle:_")
implementation("org.jetbrains.compose:compose-gradle-plugin:_")
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:_")
implementation("com.github.jakemarsden:git-hooks-gradle-plugin:_")
implementation("io.gitlab.arturbosch.detekt:detekt-gradle-plugin:_")
implementation("io.github.gradle-nexus:publish-plugin:_")
implementation("org.jetbrains.dokka:dokka-gradle-plugin:_")
}
tasks {
withType<KotlinCompile> {
kotlinOptions {
languageVersion = "1.4" // 1.9 since gradle 8
}
}
}
gradleEnterprise {
buildScan {
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
}
}
kotlin {
sourceSets {
all {
languageSettings {
optIn("org.jetbrains.compose.ExperimentalComposeLibrary")
}
}
}
}