-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
84 lines (70 loc) · 2.72 KB
/
Copy pathbuild.gradle
File metadata and controls
84 lines (70 loc) · 2.72 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
ext.pluginApiVersion = '8.13.1'
ext.luceneVersion = '9.9.2'
buildscript {
ext.pluginApiVersion = '8.13.1'
repositories {
mavenCentral()
}
dependencies {
classpath "org.elasticsearch.gradle:build-tools:${pluginApiVersion}"
}
}
apply plugin: 'elasticsearch.esplugin'
apply plugin: 'elasticsearch.yaml-rest-test'
apply plugin: 'java'
java {
sourceCompatibility = 17
targetCompatibility = 17
}
esplugin {
name 'ingest_rest'
description 'Consume REST in Ingest Plugin'
classname 'org.elasticsearch.plugin.ingest.rest.IngestRestPlugin'
licenseFile rootProject.file('SSPL-1.0+ELASTIC-LICENSE-2.0.txt')
noticeFile rootProject.file('NOTICE.txt')
}
tasks.build {
manifest {
attributes(
'Implementation-Title': 'Ingest REST Plugin',
'Implementation-Version': version,
'Implementation-Vendor': 'Elasticsearch',
'Implementation-Vendor-Id': 'org.elasticsearch',
'Implementation-URL': 'https://www.elastic.co',
'Short-Name': 'ingest_rest',
'Long-Name': 'Ingest REST Plugin',
'Description': 'Consume REST in Ingest Plugin',
'License': 'SSPL-1.0+ELASTIC-LICENSE-2.0',
'License-URL': 'https://www.elastic.co/licensing/elastic-license',
'Elasticsearch-Plugin-Class': 'org.elasticsearch.plugin.ingest.rest.IngestRestPlugin',
'Elasticsearch-Plugin-Version': version
)
}
}
group 'org.elasticsearch.plugin.ingest.rest'
version '8.13.1'
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
// Other dependencies
implementation group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.13'
implementation group: 'org.apache.httpcomponents', name: 'httpcore', version: '4.4.14'
implementation group: 'org.apache.httpcomponents', name: 'httpmime', version: '4.5.13'
compileOnly "org.elasticsearch:elasticsearch:${pluginApiVersion}"
//TODO transitive dependency off and plugin-api dependency?
compileOnly "org.elasticsearch.plugin:elasticsearch-plugin-api:${pluginApiVersion}"
compileOnly "org.elasticsearch.plugin:elasticsearch-plugin-analysis-api:${pluginApiVersion}"
compileOnly "org.apache.lucene:lucene-analysis-common:${luceneVersion}"
compileOnly "org.elasticsearch:elasticsearch:${pluginApiVersion}"
//TODO for testing this also have to be declared
testImplementation "org.elasticsearch.plugin:elasticsearch-plugin-api:${pluginApiVersion}"
testImplementation "org.elasticsearch.plugin:elasticsearch-plugin-analysis-api:${pluginApiVersion}"
testImplementation "org.apache.lucene:lucene-analysis-common:${luceneVersion}"
testImplementation ('junit:junit:4.13.2'){
exclude group: 'org.hamcrest'
}
testImplementation 'org.mockito:mockito-core:4.4.0'
testImplementation 'org.hamcrest:hamcrest:2.2'
}