forked from netcrazy/elasticsearch-jaso-analyzer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
executable file
·50 lines (41 loc) · 1.23 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
apply plugin: 'java'
sourceCompatibility = JavaVersion.VERSION_11
compileJava.options.encoding = 'UTF-8'
version = '8.1.1'
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'
}
uploadArchives {
repositories {
flatDir {
dirs 'repos'
}
}
}
task buildPluginZip(type: Zip, dependsOn:[':jar']) {
baseName = 'jaso-analyzer-plugin'
classifier = 'plugin'
from files(libsDir)
from 'src/main/resources'
}
artifacts {
archives buildPluginZip
}
[ compileJava, compileTestJava ]*.options*.encoding = 'UTF-8'
[ compileJava, compileTestJava ]*.options*.compilerArgs = ['-Xlint:-options']