1
1
apply plugin : ' java'
2
+ apply plugin : ' maven'
2
3
apply plugin : ' eclipse'
3
4
4
5
sourceCompatibility = 1.8
18
19
}
19
20
20
21
configurations {
21
- releaseJars {
22
- extendsFrom runtime
22
+ wagon
23
+ releaseJars {
24
+ extendsFrom runtime
25
+ exclude group : ' org.elasticsearch'
26
+ exclude group : ' org.apache.lucene'
27
+ exclude module : ' commons-logging'
28
+ exclude module : ' commons-codec'
29
+ exclude module : ' commons-lang3'
30
+ exclude module : ' httpclient'
31
+ exclude module : ' httpcore'
32
+ exclude module : ' junit'
23
33
}
24
34
}
25
35
@@ -49,7 +59,6 @@ dependencies {
49
59
compile(" org.apache.httpcomponents:httpclient:4.5.2" )
50
60
51
61
// stuff
52
- compile(" org.apache.commons:commons-lang3:3.4" )
53
62
compile(" com.carrotsearch.randomizedtesting:randomizedtesting-runner:2.3.4" )
54
63
55
64
// test
@@ -74,7 +83,7 @@ uploadArchives {
74
83
75
84
task makePluginDescriptor (type : Copy ) {
76
85
from ' src/main/templates'
77
- into ' src/main/resources '
86
+ into ' build/tmp/plugin '
78
87
expand([
79
88
' descriptor' : [
80
89
' name' : pluginName,
@@ -89,3 +98,17 @@ task makePluginDescriptor(type: Copy) {
89
98
]
90
99
])
91
100
}
101
+
102
+ task buildPluginZip (type : Zip , dependsOn : [' :jar' , ' :makePluginDescriptor' ]) {
103
+ from configurations. releaseJars
104
+ from ' build/tmp/plugin'
105
+ classifier = ' plugin'
106
+ }
107
+
108
+ task unpackPlugin (type : Copy , dependsOn : [' :buildPluginZip' ]) {
109
+ delete " plugins"
110
+ from configurations. releaseJars
111
+ from ' build/tmp/plugin'
112
+ into " plugins/${ pluginName} "
113
+ }
114
+
0 commit comments