-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
71 lines (55 loc) · 1.98 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
plugins {
id 'scala'
id 'idea'
id 'java'
id 'eclipse'
id 'com.github.ben-manes.versions' version "0.15.0"
id "com.github.maiflai.scalatest" version "0.16"
}
group = theGroup
version = theVersion
sourceCompatibility = theSourceCompatibility
repositories {
mavenCentral()
}
def scalaVersion = '2.12'
// Note: Make sure any scala library included uses scalaVersion 2.11, 2.12 libraries are not compatible
dependencies {
compile group: 'org.scala-lang', name: 'scala-library', version: "${scalaVersion}.4"
compile group: 'com.mashape.unirest', name: 'unirest-java', version: '1.4.9'
// Note: Gatling DSE project is ONLY compatible with Gatling v2.3.0+ as of 2017-10-05
compile(group: 'io.gatling.highcharts', name: 'gatling-charts-highcharts', version: '2.3.0') {
exclude(module: 'gatling-jdbc')
exclude(module: 'gatling-jms')
exclude(module: 'gatling-redis')
exclude(module: 'redisclient')
exclude(module: 'gatling-recorder')
}
compile fileTree(dir: 'lib', includes: ['*.jar'])
testCompile group: 'org.scalatest', name: "scalatest_${scalaVersion}", version: '3.0.1'
testRuntime group: 'org.pegdown', name: 'pegdown', version: '1.6.0'
}
task wrapper(type: Wrapper) {
gradleVersion = '4.2'
}
jar {
baseName = theName
version = theVersion
from(configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }) {
exclude "META-INF/*.SF"
exclude "META-INF/*.DSA"
exclude "META-INF/*.RSA"
}
manifest {
attributes 'Implementation-Title': theName,
'Implementation-Version': theVersion,
'Built-By': System.getProperty('user.name'),
'Built-Date': new Date(),
'Built-JDK': System.getProperty('java.version'),
'Main-Class': 'com.datastax.gatling.stress.Starter'
}
}
task buildLauncher(type: Exec) {
commandLine './src/make/launch-builder.sh'
}
build.finalizedBy(buildLauncher)