-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
64 lines (54 loc) · 1.78 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
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java Library project to get you started.
* For more details take a look at the Java Libraries chapter in the Gradle
* User Manual available at https://docs.gradle.org/6.0/userguide/java_library_plugin.html
*/
apply plugin: 'groovy'
apply plugin: 'jacoco'
repositories {
mavenCentral()
jcenter()
}
dependencies {
compile 'org.codehaus.groovy:groovy-all:3.0.2'//2.4.12
compile group: 'org.osgi', name: 'osgi.core', version: '4.3.1'
compile fileTree(dir: 'lib', include: ['*.jar'])
compile group: 'org.opentest4j', name: 'opentest4j', version: '1.2.0'
testCompile 'org.codehaus.groovy:groovy-all:3.0.2'
testCompile fileTree(dir: 'lib/spock', include: ['*.jar'])
implementation "org.junit.jupiter:junit-jupiter-api:5.3.0"
testRuntimeOnly "org.junit.vintage:junit-vintage-engine:5.3.0"
}
jar {
archiveName = "myUtilsPackaged.jar"
manifest {
attributes 'Manifest-Version': '1.0'
}
into('iFlowUtils/src/main/resources/script/'){
from file("${buildDir}/classes/groovy/main/iFlowUtils/src/main/resources/script/MyUtilsPackaged.class")
}
destinationDir = file("$rootDir/src/main/groovy/TriggerError/src/main/resources/lib")
exclude ("manual/**")
exclude ("TriggerError/**")
exclude ("CreateIssueInAzureDevOps/**")
exclude ("iFlowUtils/**")
}
test {
useJUnitPlatform()
finalizedBy jacocoTestReport // report is always generated after tests run
}
jacocoTestReport {
reports {
html.enabled true
xml.enabled true
csv.enabled false
//html.destination file("${buildDir}/reports/jacocoHtml")
}
afterEvaluate {
classDirectories.setFrom files(classDirectories.files.collect {
fileTree(dir: it, exclude: ['CreateIssueInAzureDevOps/**', 'manual/**'])
})
}
}