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