forked from JLLeitschuh/ktlint-gradle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
58 lines (47 loc) · 1.35 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
plugins {
id("com.android.application")
kotlin("android")
id("org.jlleitschuh.gradle.ktlint")
}
android {
compileSdkVersion(30)
buildFeatures.viewBinding = true
defaultConfig {
minSdkVersion(23)
targetSdkVersion(30)
versionCode = 1
versionName = "1.0"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
getByName("release") {
isMinifyEnabled = false
proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro")
}
}
flavorDimensions("beer")
productFlavors {
register("weissbier")
register("kellerbier")
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
sourceSets {
val kotlinAdditionalSourceSets = project.file("src/main/kotlin")
findByName("main")?.java?.srcDirs(kotlinAdditionalSourceSets)
}
}
dependencies {
implementation(libs.androidx.fragment)
implementation(libs.androidx.recycler.view)
implementation(libs.android.material)
testImplementation(libs.junit)
androidTestImplementation(libs.androidx.test.runner)
androidTestImplementation(libs.androidx.espresso)
}
ktlint {
android.set(true)
outputColorName.set("RED")
}