-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
64 lines (53 loc) · 2.31 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
buildscript {
repositories {
mavenCentral()
mavenLocal()
jcenter()
}
dependencies {
classpath "org.elasticsearch.gradle:build-tools:${elasticsearch_version}"
}
}
group 'com.brusic.elasticsearch.plugin.ingest'
version '1.0'
apply plugin: 'elasticsearch.esplugin'
apply plugin: 'idea'
esplugin {
name 'ingest-aws-rekognition'
description 'Ingest processor that uses AWS Rekognition for image analysis'
classname 'com.brusic.elasticsearch.ingest.rekognition.IngestAwsRekognitionPlugin'
}
dependencies {
compile group: 'com.amazonaws', name: 'aws-java-sdk-rekognition', version: "${aws_version}"
// Elasticsearch removes transitive dependencies
// and forces this behavior on plugin authors WTF ^:-/
compile group: 'com.amazonaws', name: 'aws-java-sdk-core', version: "${aws_version}"
compile group: 'commons-logging', name: 'commons-logging', version: '1.1.3'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.6.7'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.6.7.1'
compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.2'
compile group: 'org.apache.httpcomponents', name: 'httpcore', version: '4.4.5'
compile group: 'joda-time', name: 'joda-time', version: '2.9.5'
}
licenseFile = rootProject.file('LICENSE')
noticeFile = rootProject.file('NOTICE')
project.ext.projectSubstitutions = ["": ""] // seems like a bug
dependencyLicenses.enabled = false
thirdPartyAudit.enabled = false
licenseHeaders.enabled = false
forbiddenPatterns {
exclude '**/*.jpg'
}
integTestCluster {
// if these values are defined, integration tests will be run against the actual API
// keystoreSetting 'ingest.aws-rekognition.credentials.access_key', 'myaccesskey'
// keystoreSetting 'ingest.aws-rekognition.credentials.secret_key', 'mysecretkey'
}
integTestRunner.systemProperty 'tests.rest.suite', 'integtest'
project.afterEvaluate {
if (!integTestCluster.keystoreSettings.containsKey("ingest.aws-rekognition.credentials.access_key")
|| !integTestCluster.keystoreSettings.containsKey("ingest.aws-rekognition.credentials.secret_key")) {
// skip most integration tests
integTestRunner.systemProperty 'tests.rest.suite', 'no_processors'
}
}