-
-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathbuild.gradle.kts
65 lines (58 loc) · 2.18 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
61
62
63
64
65
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
import io.gitlab.arturbosch.detekt.Detekt
import io.gitlab.arturbosch.detekt.extensions.DetektExtension.Companion.DEFAULT_SRC_DIR_JAVA
import io.gitlab.arturbosch.detekt.extensions.DetektExtension.Companion.DEFAULT_SRC_DIR_KOTLIN
import io.gitlab.arturbosch.detekt.extensions.DetektExtension.Companion.DEFAULT_TEST_SRC_DIR_JAVA
import io.gitlab.arturbosch.detekt.extensions.DetektExtension.Companion.DEFAULT_TEST_SRC_DIR_KOTLIN
import java.io.ByteArrayOutputStream
plugins {
alias(libs.plugins.versionsBenManes)
alias(libs.plugins.android.application) apply false
alias(libs.plugins.kotlin.native.cocoapods) apply false
alias(libs.plugins.kotlin.parcelize) apply false
alias(libs.plugins.kotlin.multiplatform) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.detekt)
alias(libs.plugins.touchlab.kermit) apply false
alias(libs.plugins.sqldelight) apply false
}
// todo: move from here?
val javaVersion by extra { JavaVersion.VERSION_11 }
val sharedLibGroup: String by project
val sharedLibVersion: String by project
tasks {
val swiftLint by registering {
ByteArrayOutputStream().use { outputStream ->
exec {
workingDir = File("${rootDir.path}/iosApp")
commandLine("swiftlint")
standardOutput = outputStream
}
val output = outputStream.toString()
println(output)
}
}
}
allprojects {
apply {
plugin(rootProject.libs.plugins.detekt.get().pluginId)
}
dependencies {
detektPlugins(rootProject.libs.io.gitlab.arturbosch.detekt.formatting) {
exclude(group = "org.slf4j", module = "slf4j-nop")
}
}
detekt {
source = files(
"src",
DEFAULT_SRC_DIR_JAVA,
DEFAULT_TEST_SRC_DIR_JAVA,
DEFAULT_SRC_DIR_KOTLIN,
DEFAULT_TEST_SRC_DIR_KOTLIN,
)
toolVersion = rootProject.libs.versions.detekt.get()
config = rootProject.files("config/detekt/detekt.yml")
parallel = true
}
}