forked from shogo4405/HaishinKit.kt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
72 lines (59 loc) · 1.47 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
70
71
// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'org.jetbrains.dokka'
buildscript {
ext.kotlin_version = '1.8.21'
ext.library_group = 'com.haishinkit'
ext.version_name = "0.11.0"
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.0.2'
classpath "org.jlleitschuh.gradle:ktlint-gradle:11.4.0"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:1.8.20"
}
}
repositories {
// Required to download KtLint
mavenCentral()
}
allprojects {
repositories {
mavenCentral()
google()
maven { url "https://jitpack.io" }
}
}
configurations {
ktlint
}
dependencies {
ktlint "com.pinterest:ktlint:0.49.1"
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
apply plugin: "org.jlleitschuh.gradle.ktlint"
ktlint {
debug = false
verbose = true
android = true
outputToConsole = true
ignoreFailures = true
enableExperimentalRules = true
filter {
exclude("**/generated/**")
include("**/kotlin/**")
}
}
tasks.dokkaHtmlMultiModule.configure {
outputDirectory.set(file("docs"))
}