-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
92 lines (79 loc) · 2.11 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
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.2.71'
id 'org.unbroken-dome.test-sets' version '1.5.0'
id 'distribution'
}
repositories {
flatDir {
dirs "$rootProject.projectDir/lib"
}
jcenter()
}
dependencies {
compile 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
compile ':connector-framework:1.5.0'
compile ':connector-framework-internal:1.5.0'
compile ':sapjco3:3.0.7'
testCompile 'io.kotlintest:kotlintest:2.0.7'
}
def bundleName = 'test.oim.icf.sap.hr'
def bundleVersion = '1.0'
def icfVersion = '1.5.0'
jar {
baseName = "$bundleName-$bundleVersion"
manifest {
attributes(
'ConnectorBundle-Name': bundleName,
'ConnectorBundle-Version': bundleVersion,
'ConnectorBundle-FrameworkVersion': icfVersion
)
}
}
test {
testLogging.showStandardStreams = true
afterTest { desc, result ->
println "Unit test [${desc.className}].${desc.name}: ${result.resultType}"
}
}
testSets {
integrationTest
}
integrationTest {
dependsOn jar
mustRunAfter test
testLogging.showStandardStreams = true
systemProperties = [
bundleDirectory: project.libsDir,
bundleName: bundleName,
bundleVersion: bundleVersion,
jcoDestination: 'IDM',
jcoClientAshost: '172.20.168.164',
jcoClientGwhost: '172.20.168.164',
jcoClientGwserv: '3301',
jcoClientClient: '022',
jcoClientSysnr: '01',
jcoClientLang: 'EN',
jcoClientUser: 'IDM_PROXY',
jcoClientPasswd: 'Zakh0d@12',
jcoClientTrace: '0',
jcoTraceLevel: '0',
jcoTracePath: '',
jrfcTrace: '0',
]
afterTest { desc, result ->
println "Integration test [${desc.className}].${desc.name}: ${result.resultType}"
}
}
distributions {
main {
baseName = "SAPHR-${bundleVersion}"
contents {
from(jar) { into('bundle/') }
}
}
}
distZip {
dependsOn jar
mustRunAfter test
}
distTar.enabled = false