forked from androidPluto/pluto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
65 lines (55 loc) · 1.83 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply plugin: 'org.jetbrains.dokka'
apply plugin: 'io.github.gradle-nexus.publish-plugin'
buildscript {
apply from: 'dependencies.gradle'
repositories {
maven { url "https://plugins.gradle.org/m2/" }
google()
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.4'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10"
classpath "com.github.dcendents:android-maven-gradle-plugin:2.1"
// maven central dependencies
classpath 'io.github.gradle-nexus:publish-plugin:1.1.0'
classpath 'org.jetbrains.dokka:dokka-gradle-plugin:1.4.30'
// ktlint & detekt dependencies
classpath "org.jlleitschuh.gradle:ktlint-gradle:10.2.0"
classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:$detektVersion"
}
}
allprojects {
repositories {
google()
jcenter()
}
}
subprojects {
// if (project.name != "pluto-no-op") {
pluginManager.withPlugin('kotlin-android') {
apply from: "$rootDir/scripts/static-analysis/code-analysis.gradle"
}
// }
}
task installGitHook(type: Copy) {
from new File(rootProject.rootDir, 'pre-commit')
into { new File(rootProject.rootDir, '.git/hooks') }
fileMode 0777
}
task clean(type: Delete) {
dependsOn(installGitHook)
delete rootProject.buildDir
}
tasks.withType(io.gitlab.arturbosch.detekt.Detekt).configureEach {
exclude(".*/resources/.*,.*/build/.*")
}
task prCheck {
dependsOn ':sample:assembleDebug'
dependsOn ':pluto:validateChanges'
}
apply from: "$rootDir/scripts/publish/root.gradle"
apply from: "$rootDir/scripts/project-dependancy-graph.gradle"
apply from: "$rootDir/maven-versions.gradle"