-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathbuild.gradle.kts
41 lines (37 loc) · 1.04 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
plugins {
@Suppress("DSL_SCOPE_VIOLATION")
alias(libs.plugins.ktlint)
}
buildscript {
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
dependencies {
classpath(libs.plugin.android)
classpath(libs.plugin.kotlin)
classpath(libs.plugin.shot)
}
}
group = libs.versions.project.group.get()
version = libs.versions.project.version.get()
allprojects {
apply(plugin = rootProject.libs.plugins.ktlint.get().pluginId)
configure<org.jlleitschuh.gradle.ktlint.KtlintExtension> {
filter {
exclude { element -> element.file.path.contains("generated/") }
}
}
repositories {
google()
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
jvmTarget = libs.versions.jvmTarget.get()
freeCompilerArgs = freeCompilerArgs + listOf(libs.versions.optInFlags.get())
}
}
}