-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
74 lines (62 loc) · 1.66 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
plugins {
id 'java'
id 'application'
id "com.github.spotbugs" version "1.6.2"
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
mainClassName = 'drawscillate.AppController'
repositories {
jcenter()
flatDir {
dirs 'libs'
}
}
dependencies {
implementation 'controlp5:controlp5:2.2.4'
implementation 'org.processing:core:3.3.7'
implementation name: 'sound'
implementation name: 'javamp3-1.0.4'
implementation name: 'jsyn-20171016'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.4.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.4.2'
}
test {
useJUnitPlatform()
}
/* Spot Bugs Configuration */
spotbugs {
ignoreFailures = true
toolVersion = "3.1.3"
sourceSets=[sourceSets.main]
excludeFilter = file("config/spotbugs/excludeFilter.xml")
reportsDir = file("$project.buildDir/reports/spotbugs")
effort = "max"
}
tasks.withType(com.github.spotbugs.SpotBugsTask) {
reports {
xml.enabled false
html.enabled true
}
}
/* Smart Smells Configuration */
repositories {
maven {
url "http://dl.bintray.com/arturbosch/code-analysis"
}
}
configurations {
smartsmells
}
task smartsmells(type: JavaExec) {
main = "io.gitlab.arturbosch.smartsmells.Main"
classpath = configurations.smartsmells
def input = "$project.projectDir.absolutePath/src/main"
def baseDir = "$project.projectDir/build/reports/"
def output = "$baseDir/smells/smartsmells.xml"
def params = [ '-i', input, '-o', output, '-fs', '-f', ".*/test/.*"]
args(params)
}
dependencies {
smartsmells 'io.gitlab.arturbosch.smartsmells:SmartSmells:1.0.0.RC8'
}