-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
74 lines (64 loc) · 1.44 KB
/
build.gradle
File metadata and controls
74 lines (64 loc) · 1.44 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
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
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'sonar'
apply plugin: 'sonar-runner'
sourceCompatibility = 1.8
version = '0.0'
sourceSets {
test {
java {
srcDir 'test'
}
}
}
sourceSets {
main {
java {
srcDir 'src/airplane'
}
}
test {
java {
srcDir 'test'
}
}
}
// publish JAR file
uploadArchives {
repositories {
flatDir {
dirs 'repos'
}
}
}
test {
useJUnit()
// explicitly include or exclude tests
include '**'
// show standard out and standard error of the test JVM(s) on the console
testLogging.showStandardStreams = true
// listen to events in the test execution lifecycle
beforeTest { descriptor ->
logger.lifecycle("Running test: " + descriptor)
}
// listen to standard out and standard error of the test JVM(s)
onOutput { descriptor, event ->
logger.lifecycle("Test: " + descriptor + " produced standard out/err: " + event.message )
}
}
sonarRunner {
sonarProperties {
property "sonar.host.url", "http://87.98.155.63:9000/"
property "sonar.projectKey", "airplane"
property "sonar.name", "Airplane"
property "sonar.sourceEncoding", "UTF-8"
}
}
repositories {
mavenCentral()
}
dependencies {
compile group: 'com.jgoodies', name: 'jgoodies-binding', version:'2.10.0'
testCompile group: 'junit', name: 'junit', version: '4.12-beta-3'
testCompile 'com.googlecode.multithreadedtc:multithreadedtc:1.01'
}