forked from bonitasoft/bonita-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.gradle
68 lines (61 loc) · 1.91 KB
/
common.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
allprojects {
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'idea'
group = 'org.bonitasoft.engine'
publishing {
repositories {
if (project.hasProperty("altDeploymentRepository")) {
def mavenUrl = project.getProperties()."altDeploymentRepository".split("::").last()
maven {
url = mavenUrl
}
}
}
}
idea {
module {
outputDir file('build/classes/main')
testOutputDir file('build/classes/test')
}
}
if(project.convention.findPlugin(JavaPluginConvention)) {
// Change the output directory for the main and test source sets back to the old path
sourceSets.main.output.classesDir = new File(buildDir, "classes/main")
sourceSets.test.output.classesDir = new File(buildDir, "classes/test")
}
}
subprojects {
apply plugin: 'java'
apply plugin: 'maven-publish'
apply plugin: 'bonita-tests'
apply plugin: 'com.adarshr.test-logger'
repositories {
mavenLocal()
mavenCentral()
jcenter()
sourceCompatibility = '1.8'
configurations.all {
}
afterEvaluate {
tasks.withType(AbstractCompile) { options.encoding = 'UTF-8' }
}
tasks.withType(JavaCompile) { options.encoding = 'UTF-8' }
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
options.encoding = 'UTF-8'
}
tasks.withType(DependencyReportTask) {
group "Documentation"
description "List runtime dependencies for a specified configuration"
configurations = [project.configurations.runtimeClasspath]
}
}
testlogger {
showFullStackTraces false
showCauses true
showPassed false
showSkipped true
showSummary false
}
}