forked from andrewbailey/Difference
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
65 lines (58 loc) · 1.67 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.
buildscript {
ext.kotlin_version = '1.9.0'
repositories {
google()
jcenter()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath 'com.android.tools.build:gradle:7.4.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'androidx.benchmark:benchmark-gradle-plugin:1.0.0'
classpath "org.jlleitschuh.gradle:ktlint-gradle:9.1.1"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:0.10.1"
}
}
allprojects {
apply plugin: "org.jlleitschuh.gradle.ktlint"
apply plugin: 'org.jetbrains.dokka'
group = GROUP
version = VERSION_NAME
repositories {
google()
jcenter()
}
ktlint {
android = true
verbose = true
disabledRules = [
"no-empty-class-body",
"no-blank-line-before-rbrace",
"no-wildcard-imports",
]
}
// dokka {
// outputDirectory = "$rootDir/docs/1.x"
// outputFormat = 'html'
// multiplatform {
// global {
// perPackageOption {
// prefix = "dev.andrewbailey.difference"
// suppress = true
// }
// }
// jvm {}
// }
// }
//
// task dokkaJavadoc(type: org.jetbrains.dokka.gradle.DokkaTask) {
// outputFormat = 'html'
// outputDirectory = "$buildDir/javadoc"
// }
//
// task javadocJar(type: Jar, dependsOn: dokkaJavadoc) {
// classifier = 'javadoc'
// from "$buildDir/javadoc"
// }
}