forked from connectbot/connectbot
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
68 lines (58 loc) · 1.49 KB
/
build.gradle.kts
File metadata and controls
68 lines (58 loc) · 1.49 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
val libs = extensions.getByType<VersionCatalogsExtension>().named("libs")
extra.set("TRANSLATIONS_ONLY", System.getenv("TRANSLATIONS_ONLY")?.trim())
repositories {
google()
mavenCentral()
}
dependencies {
classpath(libs.findLibrary("kotlin-gradle-plugin").get())
classpath(libs.findLibrary("ksp-gradle-plugin").get())
}
}
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.ksp) apply false
alias(libs.plugins.hilt.android) apply false
alias(libs.plugins.spotless)
}
allprojects {
buildscript {
repositories {
google()
mavenCentral()
}
}
repositories {
mavenLocal()
google()
mavenCentral()
}
}
spotless {
ratchetFrom = "origin/main"
java {
target("app/src/main/java/org/connectbot/**/*.java")
importOrder()
removeUnusedImports()
googleJavaFormat()
}
kotlin {
target("app/src/**/*.kt")
ktlint("1.8.0")
.customRuleSets(listOf("io.nlopez.compose.rules:ktlint:0.5.7"))
}
groovyGradle {
target("**/*.gradle")
}
kotlinGradle {
target("**/*.gradle.kts")
ktlint()
}
format("misc") {
target(listOf("**/*.md", "**/.gitignore"))
trimTrailingWhitespace()
endWithNewline()
}
}