-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
60 lines (48 loc) · 1.27 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
apply plugin: "java"
repositories {
jcenter()
maven { url 'https://jitpack.io' }
}
task copyLibs(type: Copy) {
into "${buildDir}/libs"
from configurations.runtime
exclude "sonar-*-plugin*.jar"
}
task copyTestLibs(type: Copy) {
into "${buildDir}/test"
from configurations.testCompile
}
task copyPlugins(type: Copy) {
into "${buildDir}/plugins"
from configurations.testCompile
include "sonar-*-plugin*.jar"
}
task copyRunnable(type: Copy) {
into "${buildDir}"
from "bin/codeclimate-sonar"
}
task infra(dependsOn: ["copyPlugins", "copyLibs", "copyTestLibs", "copyRunnable", "jar"])
build.dependsOn(infra)
test.dependsOn(infra)
dependencies {
compile("com.github.codeclimate:codeclimate-ss-analyzer-wrapper:master-SNAPSHOT")
// Plugins
compile("org.sonarsource.python:sonar-python-plugin:1.8.0.1496")
testCompile("org.assertj:assertj-core:2.8.0")
testCompile("org.skyscreamer:jsonassert:1.5.0")
testCompile("junit:junit:4.12")
}
test {
outputs.upToDateWhen { false }
testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
exceptionFormat "full"
}
}
apply plugin: "idea"
idea {
module {
downloadJavadoc = false
downloadSources = false
}
}