forked from t0xa/gelfj
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
54 lines (47 loc) · 1.36 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
buildscript {
repositories {
maven { url "http://repo.springsource.org/plugins-release" }
}
dependencies {
classpath("org.springframework.build.gradle:propdeps-plugin:0.0.5")
classpath 'org.dm.gradle:gradle-bundle-plugin:0.6.2'
}
}
apply plugin: 'java'
apply plugin: 'propdeps'
apply plugin: 'propdeps-maven'
apply plugin: 'org.dm.bundle'
group = 'org.graylog2.gelfj'
sourceCompatibility = 1.5
version = '1.1.9-SNAPSHOT'
jar {
manifest {
attributes 'Implementation-Title': 'GELF Java Implementation',
'Implementation-Version': project.version,
'Import-Package': '!*',
'Private-Package': '*',
'Export-Package': 'org.graylog2;org.graylog2.*',
'Bundle-Name': project.group,
'Bundle-SymbolicName': project.group,
'Embed-Dependency': '*;scope=compile|runtime;inline=true',
'Fragment-Host' : 'org.ops4j.pax.logging.pax-logging-service'
}
doFirst {
from { configurations.runtime.collect { it.isDirectory() ? it : zipTree(it) } }
}
}
repositories {
mavenCentral()
}
dependencies {
testCompile 'junit:junit:4.9'
testCompile 'com.google.guava:guava:18.0-rc1'
compile "log4j:log4j:1.2.17@jar"
compile "com.googlecode.json-simple:json-simple:1.1"
compile "com.rabbitmq:amqp-client:3.0.4"
}
task libDir(dependsOn: assemble, type: Copy) {
into('lib')
from configurations.runtime
from configurations.runtime.allArtifacts.file
}