forked from jbparker/stash2slack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
279 lines (272 loc) · 13.9 KB
/
pom.xml
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.pragbits.bitbucketserver</groupId>
<artifactId>stash2slack</artifactId>
<version>2.1.0</version>
<organization>
<name>Pragmatic Bits</name>
<url>http://blog.pragbits.com/</url>
</organization>
<name>Slack notifications for pull request and push activities</name>
<description>Sends pull request activity and git push notifications to Slack</description>
<packaging>atlassian-plugin</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<bitbucket.version>5.0.0</bitbucket.version>
<bitbucket.data.version>${bitbucket.version}</bitbucket.data.version>
<atlassian-sal-api.version>3.0.5</atlassian-sal-api.version>
<amps.version>6.2.11</amps.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.atlassian.bitbucket.server</groupId>
<artifactId>bitbucket-parent</artifactId>
<version>${bitbucket.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>com.atlassian.bitbucket.server</groupId>
<artifactId>bitbucket-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.atlassian.bitbucket.server</groupId>
<artifactId>bitbucket-spi</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.atlassian.bitbucket.server</groupId>
<artifactId>bitbucket-git-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.atlassian.sal</groupId>
<artifactId>sal-api</artifactId>
<version>${atlassian-sal-api.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.10</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.6</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.ws.rs</groupId>
<artifactId>jsr311-api</artifactId>
<version>1.1.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.2.2-atlassian-1</version>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<version>1.8.5</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.atlassian.plugins</groupId>
<artifactId>atlassian-plugins-webresource</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.atlassian.soy</groupId>
<artifactId>soy-template-renderer-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>11.0.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>commons-validator</groupId>
<artifactId>commons-validator</artifactId>
<version>1.4.0</version>
</dependency>
<dependency>
<groupId>xalan</groupId>
<artifactId>xalan</artifactId>
<version>2.7.1</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>com.atlassian.maven.plugins</groupId>
<artifactId>bitbucket-maven-plugin</artifactId>
<version>${amps.version}</version>
<extensions>true</extensions>
<configuration>
<allowGoogleTracking>false</allowGoogleTracking>
<enableQuickReload>true</enableQuickReload>
<enableFastdev>false</enableFastdev>
<enableDevToolbox>false</enableDevToolbox>
<enablePde>false</enablePde>
<skipRestDocGeneration>true</skipRestDocGeneration>
<allowGoogleTracking>false</allowGoogleTracking>
<skipManifestValidation>true</skipManifestValidation>
<extractDependencies>false</extractDependencies>
<server>localhost</server>
<!--
#Bitbucket Plugin development
In order to test the cluster option the following environment variables need to be configured
export BITBUCKET_JDBC_URL="jdbc:mysql://datatbase_instance_url/database?characterEncoding=utf8&useUnicode=true&sessionVariables=storage_engine%3DInnoDB"
export BITBUCKET_JDBC_USER=XXXXXXXXXXXXXX
export BITBUCKET_JDBC_PASSWORD=XXXXXXXXXXXXXX
-->
<!-- run DC cluster using 'atlas-run \-\-testGroup clusterTestGroup' -->
<!-- you will also need to download mysql driver and place in /home/lib for *all* nodes in cluster. See bitbucket.shared.home values for each node below -->
<!-- see https://developer.atlassian.com/stash/docs/latest/how-tos/cluster-safe-plugins.html -->
<!-- the file runClustered.sh aggregates some manipulations needed to make it easier, but starting a clister is sloooow -->
<products>
<!-- standalone non-clustered w/ in-memory db -->
<product>
<id>bitbucket</id>
<instanceId>bitbucket-single</instanceId>
<version>${bitbucket.version}</version>
<dataVersion>${bitbucket.data.version}</dataVersion>
</product>
<!-- node 1 for datacenter configuration -->
<product>
<id>bitbucket</id>
<instanceId>bitbucket-node-1</instanceId>
<version>${bitbucket.version}</version>
<dataVersion>${bitbucket.data.version}</dataVersion>
<systemPropertyVariables>
<bitbucket.shared.home>${project.basedir}/target/bitbucket-node-1/home/shared</bitbucket.shared.home>
<!-- override the SSH port used for this node -->
<bitbucket.plugin.ssh.port>7997</bitbucket.plugin.ssh.port>
<!-- override database settings so both nodes use a single database -->
<jdbc.driver>com.mysql.jdbc.Driver</jdbc.driver>
<!-- We don't care this is visible. Protected network with empty dataset -->
<!-- You can modify to point to any MySQL db with permissions to create/alter/drop -->
<jdbc.url>${env.BITBUCKET_JDBC_URL}</jdbc.url>
<jdbc.user>${env.BITBUCKET_JDBC_USER}</jdbc.user>
<jdbc.password>${env.BITBUCKET_JDBC_PASSWORD}</jdbc.password>
<!-- allow cluster nodes to find each other over TCP/IP thus enabling clustering for this node -->
<hazelcast.network.tcpip>true</hazelcast.network.tcpip>
<!-- set to true if your load balancer supports stick sessions -->
<hazelcast.http.stickysessions>false</hazelcast.http.stickysessions>
<!-- forces Stash to fully finish starting up before yielding to the func test runner or atlas-run -->
<johnson.spring.lifecycle.synchronousStartup>true</johnson.spring.lifecycle.synchronousStartup>
</systemPropertyVariables>
<libArtifacts>
<!-- ensure MySQL drivers are available to Bitbucket -->
<libArtifact>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.41</version>
</libArtifact>
</libArtifacts>
</product>
<!-- node 2 for datacenter configuration-->
<product>
<id>bitbucket</id>
<instanceId>bitbucket-node-2</instanceId>
<version>${bitbucket.version}</version>
<dataVersion>${bitbucket.data.version}</dataVersion>
<!-- override the HTTP port used for this node -->
<httpPort>7992</httpPort>
<systemPropertyVariables>
<bitbucket.shared.home>${project.basedir}/target/bitbucket-node-1/home/shared</bitbucket.shared.home>
<!-- override the SSH port used for this node -->
<bitbucket.plugin.ssh.port>7998</bitbucket.plugin.ssh.port>
<!-- override database settings so both nodes use a single database -->
<jdbc.driver>com.mysql.jdbc.Driver</jdbc.driver>
<jdbc.url>${env.BITBUCKET_JDBC_URL}</jdbc.url>
<jdbc.user>${env.BITBUCKET_JDBC_USER}</jdbc.user>
<jdbc.password>${env.BITBUCKET_JDBC_PASSWORD}</jdbc.password>
<!-- allow cluster nodes to find each other over TCP/IP thus enabling clustering for this node -->
<hazelcast.network.tcpip>true</hazelcast.network.tcpip>
<!-- set to true if your load balancer supports stick sessions -->
<hazelcast.http.stickysessions>false</hazelcast.http.stickysessions>
<!-- forces Stash to fully finish starting up before yielding to the func test runner or atlas-run -->
<johnson.spring.lifecycle.synchronousStartup>true</johnson.spring.lifecycle.synchronousStartup>
</systemPropertyVariables>
<libArtifacts>
<!-- ensure MySQL drivers are available to Bitbucket -->
<libArtifact>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.41</version>
</libArtifact>
</libArtifacts>
</product>
</products>
<testGroups>
<!-- tell AMPS / Maven which products ie nodes to run for the named testGroup 'clusterTestGroup' -->
<testGroup>
<id>clusterTestGroup</id>
<productIds>
<productId>bitbucket-node-1</productId>
<productId>bitbucket-node-2</productId>
</productIds>
</testGroup>
<testGroup>
<id>default</id>
<productIds>
<productId>bitbucket-single</productId>
</productIds>
</testGroup>
</testGroups>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.2</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>atlassian-public</id>
<url>https://maven.atlassian.com/content/groups/public</url>
<releases>
<enabled>true</enabled>
<checksumPolicy>warn</checksumPolicy>
</releases>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>atlassian-public</id>
<url>https://maven.atlassian.com/content/groups/public</url>
<releases>
<enabled>true</enabled>
<checksumPolicy>warn</checksumPolicy>
</releases>
</pluginRepository>
</pluginRepositories>
</project>