forked from viniciusccarvalho/elasticsearch-newrelic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
47 lines (37 loc) · 838 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
39
40
41
42
43
44
45
46
47
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin:'application'
sourceCompatibility = 1.6
version = '0.0.1'
repositories {
mavenCentral()
}
configurations {
provided
}
sourceSets {
main.compileClasspath += configurations.provided
test.compileClasspath += configurations.provided
test.runtimeClasspath += configurations.provided
}
eclipse.classpath.plusConfigurations += configurations.provided
dependencies {
provided 'org.elasticsearch:elasticsearch:0.20.5'
compile 'com.newrelic.agent.java:newrelic-api:2.14.0'
testCompile 'junit:junit:4.8.2'
testCompile 'org.mockito:mockito-all:1.9.5'
}
jar {
from {
configurations.compile.collect {
if(it.isDirectory()){
it
}else{
filtered = zipTree(it).matching {
exclude "**/*.java"
}
filtered
}
}
}
}