-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
48 lines (41 loc) · 1.42 KB
/
build.gradle.kts
File metadata and controls
48 lines (41 loc) · 1.42 KB
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
plugins {
`kotlin-dsl`
// When updating, update below in dependencies too
id("com.diffplug.spotless") version "8.4.0"
}
spotless {
kotlinGradle {
ktlint().editorConfigOverride(
mapOf(
"indent_size" to "2",
"continuation_indent_size" to "2",
"max_line_length" to "160",
"insert_final_newline" to "true",
"ktlint_standard_no-wildcard-imports" to "disabled",
// ktlint does not break up long lines, it just fails on them
"ktlint_standard_max-line-length" to "disabled",
// ktlint makes it *very* hard to locate where this actually happened
"ktlint_standard_trailing-comma-on-call-site" to "disabled",
// depends on ktlint_standard_wrapping
"ktlint_standard_trailing-comma-on-declaration-site" to "disabled",
// also very hard to find out where this happens
"ktlint_standard_wrapping" to "disabled"
)
)
target("**/*.gradle.kts")
}
}
repositories {
gradlePluginPortal()
// for otel upstream snapshots
maven {
url = uri("https://central.sonatype.com/repository/maven-snapshots/")
}
}
dependencies {
implementation(gradleApi())
implementation("com.diffplug.spotless:spotless-plugin-gradle:8.4.0")
implementation("io.opentelemetry.instrumentation:gradle-plugins:2.26.0-alpha")
// keep these versions in sync with settings.gradle.kts
implementation("com.gradleup.shadow:shadow-gradle-plugin:9.4.0")
}