This repository has been archived by the owner on Apr 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathbuild.gradle.kts
70 lines (58 loc) · 1.81 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
59
60
61
62
63
64
65
66
67
68
69
70
import com.android.build.gradle.internal.tasks.factory.dependsOn
import com.appmattus.markdown.rules.LineLengthRule
import com.appmattus.markdown.rules.ProperNamesRule
import org.jetbrains.dokka.gradle.DokkaMultiModuleTask
import org.jetbrains.dokka.gradle.DokkaTask
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath("com.android.tools.build:gradle:4.0.1")
}
}
plugins {
kotlin("jvm") version "1.4.10" apply false
id("org.jetbrains.dokka") version "1.4.10"
id("org.owasp.dependencycheck") version "6.0.2"
id("com.appmattus.markdown") version "0.6.0"
}
allprojects {
repositories {
google()
jcenter()
// For material dialogs
maven(url = "https://dl.bintray.com/drummer-aidan/maven/")
}
}
subprojects {
tasks.withType<DokkaTask> {
outputDirectory.set(buildDir.resolve("reports/dokka"))
dokkaSourceSets {
configureEach {
skipDeprecated.set(true)
sourceLink {
localDirectory.set(rootDir)
remoteUrl.set(java.net.URL("https://github.com/babylonhealth/certificate-transparency-android/blob/main/"))
remoteLineSuffix.set("#L")
}
}
}
}
}
tasks.register<Delete>("clean") {
delete(rootProject.buildDir)
}
apply(from = "$rootDir/gradle/scripts/detekt.gradle.kts")
apply(from = "$rootDir/gradle/scripts/dependencyUpdates.gradle.kts")
val dokka = tasks.named<DokkaMultiModuleTask>("dokkaHtmlMultiModule") {
outputDirectory.set(buildDir.resolve("dokkaCustomMultiModuleOutput"))
}
tasks.register("check").dependsOn(dokka)
markdownlint {
rules {
+LineLengthRule(codeBlocks = false)
+ProperNamesRule { excludes = listOf(".*/NOTICE.md") }
}
}