-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.gradle
More file actions
28 lines (26 loc) · 1001 Bytes
/
build.gradle
File metadata and controls
28 lines (26 loc) · 1001 Bytes
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
plugins {
id 'java'
id 'base'
id "org.sonarqube" version "3.5.0.2730"
}
sonarqube {
properties {
property "sonar.projectName", "githubactions"
property "sonar.projectKey", "DevSecOpsSamples_githubactions"
property "sonar.organization", "devsecopssamples"
// property "sonar.host.url", "http://127.0.0.1:9000"
property "sonar.host.url", "https://sonarcloud.io"
property "sonar.sourceEncoding", "UTF-8"
property "sonar.sources", "."
property "sonar.python.version", "3.9"
property "sonar.inclusions", "**/*.yml"
property "sonar.exclusions", "build/**, gha-creds-*.json, .*sa, java/**"
// property "sonar.java.binaries", "build"
property "sonar.links.ci", "https://github.com/DevSecOpsSamples/githubactions/actions"
}
}
clean.doFirst {
delete "${rootDir}/.pytest_cache"
delete fileTree(dir: './' , include: '**/.coverage')
delete fileTree(dir: 'python' , include: '**/*.pyc')
}