-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
56 lines (49 loc) · 1.21 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
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'idea'
group = 'org.lili.elasticsearch.plugins'
version = '0.0.1'
repositories {
mavenCentral()
}
configurations.all {
resolutionStrategy.cacheDynamicVersionsFor 1, 'seconds'
}
dependencies {
annotationProcessor 'org.projectlombok:lombok:1.18.6'
compileOnly 'org.projectlombok:lombok:1.18.6'
api 'org.elasticsearch:elasticsearch:7.15.1'
compile fileTree(dir: 'libs', include: '*.jar')
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
task sourcesJar(type: Jar) {
archiveClassifier = 'sources'
from sourceSets.main.allJava
}
task javadocJar(type: Jar) {
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}
jar {
manifest {
attributes("Implementation-Title": "ESPlugin",
"Implementation-Version": version)
}
enabled true
}
task zip(type: Zip, dependsOn: jar) {
from('build/libs') {
include 'ESPlugin-' + version + '.jar'
}
from('libs') {
include '*.jar'
}
from('./') {
include 'plugin-descriptor.properties'
include 'plugin-security.policy'
}
baseName 'ESPlugin-es7.15.1'
destinationDir file('build/libs')
}