-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
39 lines (36 loc) · 1.4 KB
/
build.gradle
File metadata and controls
39 lines (36 loc) · 1.4 KB
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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
// repositories {
// mavenCentral()
// google()
// maven { url "https://maven.google.com" }
// maven { url "https://plugins.gradle.org/m2/" } // added for sonarQube
// }
dependencies {
classpath 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:4.2.1.3168'
classpath 'com.diffplug.spotless:spotless-plugin-gradle:6.19.0'
}
}
plugins {
id 'com.android.application' version '7.4.2' apply false
id 'com.android.library' version '7.4.2' apply false
id 'org.jetbrains.kotlin.android' version '1.8.20' apply false
id "io.gitlab.arturbosch.detekt" version "1.20.0"
id "org.sonarqube" version "4.2.1.3168"
}
detekt {
buildUponDefaultConfig = true // preconfigure defaults
allRules = false // activate all available (even unstable) rules.
config = files("$projectDir/detekt-rules-config.yml") // point to your custom config defining rules to run, overwriting default behavior
}
sonar {
properties {
property "sonar.sources", "./src/main"
property "sonar.projectKey", "sandeepworkspace_sandeepsonarcloud"
property "sonar.organization", "sandeepworkspace"
property "sonar.host.url", "https://sonarcloud.io"
property "sonar.projectName","SandeepSonarCloud"
}
}
//apply from: "$project.rootDir/sonarqube.gradle"
apply from: "$project.rootDir/spotless.gradle"