forked from MobileNativeFoundation/Store
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
68 lines (57 loc) · 1.96 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
buildscript {
repositories {
mavenCentral()
gradlePluginPortal()
google()
}
apply from: 'buildsystem/dependencies.gradle'
dependencies {
classpath "com.android.tools.build:gradle:${versions.androidGradlePlugin}"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
classpath "org.jetbrains.kotlin:kotlin-serialization:${versions.kotlin}"
classpath "org.jetbrains.kotlinx:binary-compatibility-validator:${versions.binaryCompatibilityValidator}"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:${versions.dokkaGradlePlugin}"
classpath "org.jlleitschuh.gradle:ktlint-gradle:${versions.ktlintGradle}"
classpath "com.diffplug.spotless:spotless-plugin-gradle:${versions.spotlessGradlePlugin}"
classpath "org.jacoco:org.jacoco.core:${versions.jacocoGradlePlugin}"
classpath "org.jetbrains.kotlinx:atomicfu-gradle-plugin:${versions.atomicFuPlugin}"
classpath "com.vanniktech:gradle-maven-publish-plugin:${versions.mavenPublishPlugin}"
}
}
apply from: 'buildsystem/dependencies.gradle'
apply plugin: 'binary-compatibility-validator'
apiValidation {
ignoredProjects += ["app"]
}
allprojects {
repositories {
mavenCentral()
google()
jcenter()
}
apply plugin: 'org.jlleitschuh.gradle.ktlint'
ktlint {
version = versions.ktlint
disabledRules = ["import-ordering"]
}
// Workaround to prevent Gradle from stealing focus from other apps during tests run/etc.
// https://gist.github.com/artem-zinnatullin/4c250e04636e25797165
tasks.withType(JavaForkOptions) {
jvmArgs '-Djava.awt.headless=true'
}
}
subprojects {
apply plugin: 'com.diffplug.spotless'
spotless {
kotlin {
target 'src/**/*.kt'
}
}
}
allprojects {
plugins.withId("com.vanniktech.maven.publish") {
mavenPublish {
sonatypeHost = "S01"
}
}
}