-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
81 lines (62 loc) · 1.83 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
apply plugin: 'java'
apply plugin: 'eclipse'
buildscript {
repositories {
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.3'
classpath "gradle.plugin.com.github.lkishalmi.gatling:gradle-gatling-plugin:0.7.3"
}
}
test {
reports {
junitXml.enabled = false
html.enabled = true
}
}
task unitTest( type: Test ) {
include '**/DbConnectionTest*'
}
task integrationTest( type: Test ) {
include '**/IntegrationTest*'
}
task UATest( type: Test ) {
include '**/UATests*'
}
//creates a Jar-File out of the java-files
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'PacelSizeComponent',
'Main-Class': 'parcelp.RestStart'
}
baseName = 'parcelSizeComponent'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
//tasks.check.dependsOn tasks.fatJar brauch ich nicht
//Run performance tests with gatling via gradle (in the build pipeline)
apply plugin: "com.github.lkishalmi.gatling"
gatling {
simulations = [ 'parcelp.PerformanceTest' ] //stimmt das?
}
//Get dependencies from Maven central repository
repositories {
mavenCentral()
}
//Project dependencies
dependencies {
//Jersey
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.2'
compile group: 'com.sun.jersey', name: 'jersey-bundle', version: '1.19.4'
//MySQL
compile group: 'mysql', name: 'mysql-connector-java', version: '5.1.39'
//JUnit
testCompile group: 'junit', name: 'junit', version: '4.12'
// Selenium
testCompile group: 'org.seleniumhq.selenium', name: 'selenium-java', version: '3.12.0'
testCompile group: 'com.codeborne', name: 'phantomjsdriver', version: '1.2.1'
}