forked from esdk/g30l0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
138 lines (120 loc) · 3.75 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
plugins {
id "de.abas.esdk" version "0.12.12"
id 'com.github.kt3k.coveralls' version '2.8.2'
}
repositories {
maven { url "https://registry.abas.sh/artifactory/abas.maven-public/" }
maven { url "http://$NEXUS_HOST:$NEXUS_PORT/nexus/content/repositories/$NEXUS_NAME-SNAPSHOT" }
maven { url "http://$NEXUS_HOST:$NEXUS_PORT/nexus/content/repositories/$NEXUS_NAME" }
}
esdk {
app {
name = "g30l0"
vendorId = "ag"
appId = "g30l0"
shared = false
infosystems = [ "IS.OW1.G30L0" ]
tables = [ "Kunde" ]
screens = [:]
data = []
enums = []
namedTypes = []
languages = "DA"
essentialsVersions = [ "2017r4n00-2017r4n17" ]
}
abas {
homeDir = ABAS_HOMEDIR
clientDir = ABAS_CLIENTDIR
clientId = ABAS_CLIENTID
edpHost = EDP_HOST
edpPort = EDP_PORT.toInteger()
edpUser = EDP_USER
edpPassword = EDP_PASSWORD
}
nexus {
nexusHost = NEXUS_HOST
nexusPort = NEXUS_PORT.toInteger()
nexusRepoName = NEXUS_NAME
nexusPassword = NEXUS_PASSWORD
nexusVersion = NEXUS_VERSION
}
ssh {
host = SSH_HOST
port = SSH_PORT.toInteger()
user = SSH_USER
password = SSH_PASSWORD
key = SSH_KEY
}
installType = "SSH"
}
task instrument(dependsOn: [classes, project.configurations.jacocoAnt]) {
inputs.files classes.outputs.files
File outputDir = new File(project.buildDir, 'instrumentedClasses')
outputs.dir outputDir
doFirst {
project.delete(outputDir)
ant.taskdef(
resource: 'org/jacoco/ant/antlib.xml',
classpath: project.configurations.jacocoAnt.asPath,
uri: 'jacoco'
)
def instrumented = false
if (file(sourceSets.main.java.outputDir).exists()) {
def instrumentedClassedDir = "${outputDir}/${sourceSets.main.java}"
ant.'jacoco:instrument'(destdir: instrumentedClassedDir) {
fileset(dir: sourceSets.main.java.outputDir, includes: '**/*.class')
}
//Replace the classes dir in the test classpath with the instrumented one
sourceSets.test.runtimeClasspath -= files(sourceSets.main.java.outputDir)
sourceSets.test.runtimeClasspath += files(instrumentedClassedDir)
instrumented = true
}
if (instrumented) {
//Disable class verification based on https://github.com/jayway/powermock/issues/375
test.jvmArgs += '-noverify'
}
}
}
test.dependsOn instrument
test {
jacoco {
excludes += ['**/*']
}
}
coveralls {
jacocoReportPath 'build/reports/jacoco/calculateCodeCoverage/calculateCodeCoverage.xml'
}
calculateCodeCoverage {
reports {
xml.enabled true
}
finalizedBy tasks.coveralls
}
group = 'de.abas.esdk.g30l0'
configurations { compile.extendsFrom provided }
dependencies {
provided 'de.abas.homedir:log4j:1.0.0'
provided "de.abas.homedir:abas-db-base:1.0.0"
provided "de.abas.homedir:jedp:1.0.0"
provided "de.abas.homedir:abas-jfop-runtime-api:1.0.0"
provided "de.abas.homedir:abas-erp-common:1.0.0"
provided "de.abas.homedir:abas-enums:1.0.0"
implementation "de.abas.homedir:abas-axi2:1.0.0"
implementation "de.abas.homedir:abas-axi:1.0.0"
implementation "de.abas.homedir:abas-db-internal:1.0.0"
implementation "de.abas.clientdir:abas-db:1.0.0-SNAPSHOT"
implementation "de.abas.clientdir:abas-db-infosys:1.0.0-SNAPSHOT"
implementation "fr.dudie:nominatim-api:3.3"
runtime "de.abas.homedir:commons-collections:1.0.0"
runtime "de.abas.homedir:abas-jfop-base:1.0.0"
runtime "de.abas.homedir:jcl-over-slf4j:1.0.0"
runtime "de.abas.homedir:slf4j-api:1.0.0"
licensing "de.abas.esdk:client-api:0.0.7:all"
testImplementation "junit:junit:4.12"
testImplementation "org.hamcrest:hamcrest-all:1.3"
testImplementation "de.abas.esdk.test.util:esdk-test-utils:0.0.2"
testImplementation "org.mockito:mockito-all:1.10.19"
testImplementation "org.powermock:powermock-module-junit4:1.6.2"
testImplementation "org.powermock:powermock-api-mockito:1.6.2"
integTestRuntime "de.abas.homedir:abas-db-util:1.0.0"
}