forked from JakeWharton/diffuse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
76 lines (70 loc) · 2.13 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
72
73
74
75
76
buildscript {
ext.deps = [
'androidTools': [
'dalvikDx': 'com.jakewharton.android.repackaged:dalvik-dx:9.0.0_r3',
'binaryResources': 'com.android.tools.apkparser:binary-resources:27.2.0-alpha08',
'apkSigner': 'com.android.tools.build:apksig:4.2.0-alpha08',
'bundleTool': 'com.android.tools.build:bundletool:1.2.0',
// Keep this value in sync with bundletool's dependencies.
'aapt2Proto': 'com.android.tools.build:aapt2-proto:4.1.0-alpha01-6193524',
],
'clikt': 'com.github.ajalt.clikt:clikt:3.0.0-rc',
'junit': 'junit:junit:4.13',
'truth': 'com.google.truth:truth:1.0.1',
'guava': 'com.google.guava:guava:28.1-jre',
'okio': 'com.squareup.okio:okio:2.8.0',
'byteunits': 'com.jakewharton.byteunits:byteunits:0.9.1',
'asm': 'org.ow2.asm:asm:9.0-beta',
'diffUtils': 'io.github.java-diff-utils:java-diff-utils:4.7',
'picnic': 'com.jakewharton.picnic:picnic:0.3.0',
]
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.0"
classpath 'org.jetbrains.dokka:dokka-gradle-plugin:0.10.0'
classpath 'org.jlleitschuh.gradle:ktlint-gradle:9.3.0'
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.9.0'
}
repositories {
mavenCentral()
jcenter()
gradlePluginPortal()
}
}
subprojects {
group = GROUP
version = VERSION_NAME
repositories {
mavenCentral()
google()
jcenter()
}
apply plugin: 'org.jlleitschuh.gradle.ktlint'
ktlint {
version = '0.38.1'
disabledRules = [
'filename',
]
}
afterEvaluate {
tasks.named('check').configure {
it.dependsOn(tasks.getByName('ktlintCheck'))
}
}
plugins.withId('org.jetbrains.kotlin.jvm') {
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = [
"-XXLanguage:+InlineClasses",
"-Xjvm-default=enable",
"-progressive",
'-Xopt-in=kotlin.contracts.ExperimentalContracts'
]
}
}
}
}