-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
48 lines (42 loc) · 1.26 KB
/
build.gradle
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
apply plugin: "com.github.ben-manes.versions"
apply plugin: 'io.codearte.nexus-staging'
buildscript {
ext.kotlin_version = '1.4.32'
repositories {
google()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jlleitschuh.gradle:ktlint-gradle:10.0.0"
classpath "com.github.ben-manes:gradle-versions-plugin:0.38.0"
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.30.0"
}
}
allprojects {
repositories {
google()
jcenter()
}
}
configurations.all {
resolutionStrategy.eachDependency { details ->
def requested = details.requested
if (requested.group == 'org.jetbrains.kotlin' && requested.name == 'kotlin-reflect') {
details.useVersion kotlin_version
}
if (requested.group == 'com.pinterest' && requested.name == 'ktlint') {
details.useVersion '0.40.0'
}
}
}
tasks.register("clean", Delete) {
delete rootProject.buildDir
}
apply plugin: "org.jlleitschuh.gradle.ktlint"
subprojects {
apply plugin: "org.jlleitschuh.gradle.ktlint"
}