This repository has been archived by the owner on May 16, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
69 lines (60 loc) · 1.68 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
66
67
68
69
buildscript {
ext {
appVersionMajor = 1
appVersionMinor = 0
appVersionPatch = 0
applicationVersionCode = appVersionMajor * 10000 + appVersionMinor * 100 + appVersionPatch
applicationVersionName = "$appVersionMajor.$appVersionMinor.$appVersionPatch"
appApplicationId = "com.worldturtlemedia.cyclecheck"
androidTargetSdkVersion = 28
androidMinimumSdkVersion = 21
suffixDebug = "dev"
suffixBeta = "beta"
}
repositories {
google()
maven { url "https://plugins.gradle.org/m2/" }
maven { url "https://maven.fabric.io/public" }
jcenter()
}
dependencies {
classpath(Libs.com_android_tools_build_gradle)
classpath(Libs.kotlin_gradle_plugin)
classpath(Libs.navigation_safe_args_gradle_plugin)
classpath(Libs.oss_licenses_plugin)
classpath(Libs.google_services)
classpath(Libs.io_fabric_tools_gradle)
}
}
plugins {
id "de.fayard.buildSrcVersions" version "0.3.2"
id "com.star-zero.gradle.githook" version "1.1.0"
id "org.jetbrains.dokka-android" version "0.9.18"
id "org.jlleitschuh.gradle.ktlint" version "6.2.1"
}
allprojects {
repositories {
google()
maven { url 'https://jitpack.io' }
jcenter()
}
}
subprojects {
apply plugin: "org.jlleitschuh.gradle.ktlint"
apply plugin: 'org.jetbrains.dokka-android'
}
githook {
hooks {
"pre-commit" {
task = "ktlintCheck --daemon"
shell = "echo 1"
}
}
}
dokka {
outputFormat = 'html'
outputDirectory = "$buildDir/javadoc"
}
task clean(type: Delete) {
delete rootProject.buildDir
}