-
Notifications
You must be signed in to change notification settings - Fork 59
/
build.gradle
executable file
·49 lines (40 loc) · 1.24 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
apply plugin: 'java'
compileJava {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
version = '8.6.2'
jar {
manifest {
attributes 'Implementation-Title': 'Elasticsearch Jaso Analyzer Plugin',
'Implementation-Version': version
}
}
repositories {
mavenCentral()
}
dependencies {
implementation group: 'org.elasticsearch', name: 'elasticsearch', version: version
implementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.17.1'
implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.17.1'
implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.32'
testImplementation group: 'junit', name: 'junit', version: '4.+'
}
test {
systemProperties 'property': 'value'
}
task buildPluginZip(type: Zip, dependsOn:[':jar']) {
baseName = 'jaso-analyzer-plugin'
classifier = 'plugin'
from 'build/libs'
from 'src/main/resources'
copy {
from "build/distributions"
into "docker"
}
}
artifacts {
archives buildPluginZip
}
[ compileJava, compileTestJava ]*.options*.encoding = 'UTF-8'
[ compileJava, compileTestJava ]*.options*.compilerArgs = ['-Xlint:-options']