-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.gradle
75 lines (64 loc) · 1.98 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
buildscript {
ext.dokka_version = '1.8.10'
ext.detekt_version = '1.22.0'
// Build Config.
apply from: 'config/index.gradle'
CONFIG.versions.android.sdk.min = 23
CONFIG.versions.android.sdk.target = 34
CONFIG.versions.android.sdk.compile = 34
CONFIG.versions.kotlin = '1.6.21'
repositories {
google()
gradle()
mavenCentral()
jitpack()
}
dependencies {
classpath "com.android.tools.build:gradle:$CONFIG.versions.android.plugin"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$CONFIG.versions.kotlin"
classpath 'pl.allegro.tech.build:axion-release-plugin:1.13.6'
classpath 'com.github.ben-manes:gradle-versions-plugin:0.27.0'
classpath "org.jetbrains.dokka:dokka-gradle-plugin:${dokka_version}"
classpath 'org.owasp:dependency-check-gradle:8.2.1'
}
}
plugins {
id 'io.gitlab.arturbosch.detekt' version "${detekt_version}"
id 'org.sonarqube' version '3.3'
}
allprojects { proj ->
repositories {
google()
mavenCentral()
jitpack()
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
options.compilerArgs << '-Xlint:unchecked' << '-Xlint:deprecation'
}
}
apply plugin: 'pl.allegro.tech.build.axion-release'
scmVersion {
useHighestVersion = true
tag {
prefix = 'v'
versionSeparator = ''
versionIncrementer 'incrementMinor'
}
}
proj.version = scmVersion.version
apply plugin: 'com.github.ben-manes.versions'
}
tasks.withType(Test) {
maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
forkEvery = 100
reports.html.enabled = false
reports.junitXml.enabled = false
}
tasks.withType(JavaCompile) {
options.fork = true
options.incremental = true
}
apply from: "$project.rootDir/dependency-check.gradle"
apply from: "$project.rootDir/sonar.gradle"