forked from newrelic-experimental/newrelic-ibm-mq-monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
56 lines (41 loc) · 1.16 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
plugins {
id 'java'
id 'eclipse'
}
group = 'com.newrelic.labs'
version = '3.0.0'
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
compile 'com.newrelic.experts:infra_publish:2.3.1'
compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.3'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.9'
compile group: 'com.ibm.mq', name: 'com.ibm.mq.allclient', version: '9.1.4.0'
testImplementation 'junit:junit:4.12'
}
task allInOneJar(type: Jar) {
manifest {
attributes "Main-Class": "com.newrelic.infra.ibmmq.Main"
}
exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA'
archiveName 'plugin.jar'
destinationDir = file("$distsDir")
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
task copyToConfig(type: Copy) {
from 'config'
into "$distsDir/config"
include 'logback.xml', 'plugin.template.json', 'newrelic.template.json'
}
task copyReadMe(type: Copy) {
from projectDir
into "$distsDir"
include 'README.md'
}
jar.enabled=false
assemble.dependsOn "allInOneJar"
build.dependsOn "copyToConfig"
build.dependsOn "copyReadMe"