-
Notifications
You must be signed in to change notification settings - Fork 76
/
build.gradle
38 lines (32 loc) · 913 Bytes
/
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
apply plugin: 'java'
apply plugin: 'eclipse'
sourceCompatibility = 1.7
version = '1.2.1'
def title = 'JMeterInfluxDBListener'
jar {
manifest {
attributes 'Implementation-Title': title,
'Implementation-Version': version
}
}
repositories {
mavenCentral()
}
dependencies {
compileOnly group: 'org.apache.jmeter', name: 'ApacheJMeter_core', version: '3.1'
compileOnly group: 'org.apache.jmeter', name: 'ApacheJMeter_components', version: '3.1'
compile group: 'org.influxdb', name: 'influxdb-java', version: '2.4'
}
//create a single Jar with all dependencies
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': title,
'Implementation-Version': version
}
baseName = project.name + '-plugin'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
task wrapper(type: Wrapper) {
gradleVersion = '2.12'
}