forked from Downfy/log4j-elasticsearch-java-api
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
70 lines (57 loc) · 1.76 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
buildscript {
repositories { jcenter() }
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.2'
}
}
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'com.github.johnrengelman.shadow'
group = 'com.letfy.log4j'
version = '1.1.0'
description = """Log4j Elastic Search"""
sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
repositories {
maven { url "http://maven.springframework.org/release" }
maven { url "https://oss.sonatype.org/content/groups/public/" }
maven { url "http://repo.maven.apache.org/maven2" }
}
dependencies {
compile 'io.searchbox:jest:5.3.3'
compile 'log4j:log4j:1.2.17'
compile 'org.slf4j:slf4j-api:1.7.5'
compile 'org.slf4j:slf4j-log4j12:1.7.5'
compile 'org.elasticsearch:elasticsearch:6.0.0'
compile 'vc.inreach.aws:aws-signing-request-interceptor:0.0.20'
compile 'com.amazonaws:aws-java-sdk-core:1.11.171'
compile 'junit:junit:4.11'
}
shadowJar {
classifier = null
zip64 true
relocate 'com.amazonaws', 'es.shadow.com.amazonaws'
relocate 'com.fasterxml.jackson', 'es.shadow.com.fasterxml.jackson'
relocate 'org.apache.httpcomponents', 'es.shadow.org.apache.httpcomponents'
mergeServiceFiles()
}
publishing {
publications {
shadow(MavenPublication) { publication ->
project.shadow.component(publication)
}
}
repositories {
maven {
url 'https://scopelybin.jfrog.io/scopelybin/ext-releases-local'
credentials {
username = project.properties['artifactoryUser'] ?: ""
password = project.properties['artifactoryPassword'] ?: ""
}
}
}
}