-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
93 lines (75 loc) · 2.52 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
buildscript {
repositories {
maven { url 'https://plugins.gradle.org/m2/' }
}
dependencies {
classpath 'com.moowork.gradle:gradle-node-plugin:1.2.0'
classpath 'com.netflix.nebula:nebula-dependency-recommender:5.1.0'
classpath 'org.starchartlabs.flare:flare-operations-plugins:2.0.0'
classpath 'org.starchartlabs.flare:flare-publishing-plugins:1.0.0'
}
}
apply plugin: 'org.starchartlabs.flare.merge-coverage-reports'
allprojects{
apply plugin: 'eclipse'
apply plugin: 'nebula.dependency-recommender'
apply plugin: 'org.starchartlabs.flare.dependency-reporting'
dependencyRecommendations {
propertiesFile file: file("${rootDir}/dependencies.properties")
}
// Default all projects to a synchronized IDE version number. Certain projects, such as the API project, will override this value
version = "${coronaIdeVersion}"
// Always download sources, to allow debugging, and use Eclipse containers for greater portability
eclipse {
classpath {
downloadSources=true
}
}
repositories {
mavenCentral()
}
}
subprojects{
apply plugin: 'java'
apply plugin: 'jacoco'
apply plugin: 'maven'
apply plugin: 'org.starchartlabs.flare.increase-test-logging'
apply plugin: 'org.starchartlabs.flare.source-jars'
// Configure test support sources, which can be re-used by importing projects
configurations {
testSupport
}
sourceSets {
testSupport {
java {
srcDir 'src/test-support/java'
}
resources {
srcDir 'src/test-support/resources'
}
compileClasspath += main.output
runtimeClasspath += main.output
}
test{
compileClasspath += testSupport.output
runtimeClasspath += testSupport.output
}
}
configurations.testSupportCompile.extendsFrom(configurations.compile)
configurations.testSupportRuntime.extendsFrom(configurations.runtime)
configurations.testSupport.extendsFrom(configurations.testSupportCompile)
configurations.testSupport.extendsFrom(configurations.testSupportRuntime)
task testSupportJar(type:Jar) {
from sourceSets.testSupport.output
classifier = 'test-support'
}
artifacts {
testSupport testSupportJar
}
// Setup default test behavior, including failure logging
test {
useTestNG() {
useDefaultListeners = true
}
}
}