-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
103 lines (89 loc) · 2.99 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlinVersion = '1.4.32'
ext.kotlinxSerializationVersion = '1.2.1'
ext.detektGradlePluginVersion = '1.17.1'
ext.gradleVersionsPlugin = '0.39.0'
ext.kotlinpoetVersion = '1.9.0'
ext.fuelVersion = '2.3.1'
ext.spekVersion = '2.0.12'
ext.okio = '2.8.0'
ext.mockwebserver = '4.9.0'
repositories {
maven { url "https://kotlin.bintray.com/kotlinx" }
google()
jcenter()
maven { url "https://jitpack.io" }
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlinVersion"
classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:$detektGradlePluginVersion"
classpath "com.github.ben-manes:gradle-versions-plugin:$gradleVersionsPlugin"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
plugins {
id "io.gitlab.arturbosch.detekt" version "$detektGradlePluginVersion"
id "org.sonarqube" version "3.3"
}
apply plugin: 'io.gitlab.arturbosch.detekt'
System.setProperty( "user.dir", project.projectDir.toString())
allprojects {
apply plugin: 'jacoco'
repositories {
google()
jcenter()
maven { url "https://kotlin.bintray.com/kotlinx" }
maven { url "https://jitpack.io" }
maven { url "https://plugins.gradle.org/m2/" }
}
configurations.all {
resolutionStrategy {
force "org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion"
force "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion"
force "org.jetbrains.kotlinx:kotlinx-serialization-json:$kotlinxSerializationVersion"
//force "org.jetbrains.kotlin:kotlin-coroutines-core:1.3.9"
}
}
}
jacoco {
toolVersion = "0.8.3"
reportsDir = file("$buildDir/reports")
}
task clean(type: Delete) {
delete rootProject.buildDir
}
task detektAll(type: io.gitlab.arturbosch.detekt.Detekt) {
config.setFrom(files("$projectDir/detekt/detekt-config.yml"))
include("**/*.kt")
include("**/*.kts")
exclude("**/resources/**")
exclude("**/build/**")
exclude("**/tmp/**")
setSource(files(projectDir))
reports {
xml.enabled = false
txt.enabled = false
html {
enabled = true
destination = file("${project.rootDir}/detekt/reports/detekt.html")
}
}
autoCorrect = true
buildUponDefaultConfig = true
parallel = true
failFast = true
debug = false
}
dependencies {
detekt "io.gitlab.arturbosch.detekt:detekt-formatting:$detektGradlePluginVersion"
detekt "io.gitlab.arturbosch.detekt:detekt-cli:$detektGradlePluginVersion"
}
sonarqube {
properties {
property "sonar.projectKey", "alexxxdev_fuel-comfy"
}
}