-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
71 lines (57 loc) · 2.02 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
plugins {
id 'org.starchartlabs.flare.merge-coverage-reports' version '1.0.0'
// Plug-ins not applied at the root level, but used in sub-projects
id 'com.jfrog.bintray' version '1.8.5' apply false
id 'org.starchartlabs.flare.dependency-constraints' version '1.0.0' apply false
id 'org.starchartlabs.flare.increased-test-logging' version '1.0.0' apply false
id 'org.starchartlabs.flare.source-jars' version '1.0.0' apply false
}
allprojects{
apply plugin: 'eclipse'
apply plugin: 'org.starchartlabs.flare.dependency-constraints'
dependencyConstraints {
file file("${rootDir}/dependencies.properties")
}
// Always download sources, to allow debugging
eclipse {
classpath {
downloadSources=true
}
}
repositories {
mavenCentral()
}
}
subprojects{
apply plugin: 'java-library'
apply plugin: 'checkstyle'
apply plugin: 'jacoco'
apply plugin: 'org.starchartlabs.flare.increased-test-logging'
apply plugin: 'org.starchartlabs.flare.source-jars'
checkstyle {
configFile = rootProject.file('config/checkstyle/checkstyle.xml')
configProperties = [ 'checkstyle.config.dir' : rootProject.file('config/checkstyle') ]
toolVersion = '8.33'
}
task checkstyleAll{}
tasks.withType(Checkstyle).all { checkstyleTask -> checkstyleAll.dependsOn checkstyleTask }
check.dependsOn checkstyleAll
// Setup default test behavior, including failure logging
test {
useTestNG() {
useDefaultListeners = true
}
}
// Apply module naming to all projects
// Add LICENSE so it is included in all JARs, as well as dependent licenses, fulfilling the "distributions include license" requirement
jar {
manifest {
attributes("Automatic-Module-Name": "${project.group}.${project.name}".replaceAll("-", "."))
}
}
tasks.withType(Jar).all {
from("${rootDir}"){
include 'LICENSE'
}
}
}