forked from inspectIT/inspectIT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinspectit.server.diagnosis.gradle
53 lines (45 loc) · 1.23 KB
/
inspectit.server.diagnosis.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
/**
* Gradle build file for the inspectit.server.diagnosis project.
*
* @author Alexander Wert
*/
evaluationDependsOn(':inspectit.shared.all')
defaultTasks 'releaseAndAnalyze'
/** used by the eclipse buildship plugin */
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
/** Artifact names */
ext {
distJarName = 'inspectit-server-diagnosis'
}
/** Setting compile configuration as plugin in Eclipse needs it */
configurations {
compile {
extendsFrom configurations.serverDiagnosisProd
}
testCompile {
extendsFrom configurations.serverDiagnosisTest
}
}
/** testCompile must depend on shared all test sources because of TestBase class */
dependencies {
compile project(':inspectit.shared.all')
compile project(':inspectit.shared.cs')
testCompile project (path: ':inspectit.shared.all', configuration: 'testArchives')
}
/** Compile compatibility to 1.8 for all compile tasks */
tasks.withType(JavaCompile) {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}
/**
* Creates the jar. If needed update the version in the MANIFEST.MF.
*/
jar {
archivesBaseName = distJarName
}
task releaseAndAnalyze {
description = "Runs all unit tests, all checks and assembles a jar archive."
group = 'Release'
dependsOn(analyze, jar)
}