-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpom.xml
236 lines (221 loc) · 9.62 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
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.bonitasoft.presales.connector</groupId>
<artifactId>connector-kafka</artifactId>
<version>1.7-SNAPSHOT</version>
<name>Kafka connectors</name>
<packaging>jar</packaging>
<properties>
<!-- Github-->
<github.owner>bonitasoft-presales</github.owner>
<github.repo>${project.artifactId}</github.repo>
<!-- Maven -->
<java.version>17</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.build.timestamp.format>yyyy.MM.dd-hh.mm</maven.build.timestamp.format>
<!-- Connector consumer-->
<consumer.connector-definition-id>${project.artifactId}-consumer</consumer.connector-definition-id>
<consumer.connector-definition-version>1.0.0</consumer.connector-definition-version>
<consumer.connector-impl-id>${consumer.connector-definition-id}-impl</consumer.connector-impl-id>
<consumer.connector-impl-version>${project.version}</consumer.connector-impl-version>
<consumer.connector-main-class>com.bonitasoft.presales.connector.KafkaConsumer</consumer.connector-main-class>
<!-- Connector producer-->
<producer.connector-definition-id>${project.artifactId}-producer</producer.connector-definition-id>
<producer.connector-definition-version>1.0.0</producer.connector-definition-version>
<producer.connector-impl-id>${producer.connector-definition-id}-impl</producer.connector-impl-id>
<producer.connector-impl-version>${project.version}</producer.connector-impl-version>
<producer.connector-main-class>com.bonitasoft.presales.connector.KafkaProducer</producer.connector-main-class>
<!-- Bonita -->
<bonita-runtime.version>10.0.0</bonita-runtime.version>
<!-- Kafka -->
<kafka.version>3.7.1</kafka.version>
<!-- Tests -->
<junit-jupiter-engine.version>5.10.0</junit-jupiter-engine.version>
<assertj-core.version>3.24.2</assertj-core.version>
<mockito-core.version>5.6.0</mockito-core.version>
<logback-classic.version>1.4.14</logback-classic.version>
<slf4j.version>1.7.36</slf4j.version>
<!-- Maven plugins -->
<maven-compiler-plugin.version>3.11.0</maven-compiler-plugin.version>
<maven.compiler.release>${java.version}</maven.compiler.release>
<maven-assembly-plugin.version>3.6.0</maven-assembly-plugin.version>
<groovy-maven-plugin.version>2.1.1</groovy-maven-plugin.version>
<groovy-xml.version>3.0.19</groovy-xml.version>
<maven-surefire-plugin.version>3.2.2</maven-surefire-plugin.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.bonitasoft.runtime</groupId>
<artifactId>bonita-runtime-bom</artifactId>
<version>${bonita-runtime.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<!-- Bonita -->
<dependency>
<artifactId>bonita-common</artifactId>
<groupId>org.bonitasoft.engine</groupId>
<version>${bonita-runtime.version}</version>
<scope>provided</scope>
</dependency>
<!-- Kafka -->
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka-clients</artifactId>
<version>${kafka.version}</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- Tests -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${junit-jupiter-engine.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>${assertj-core.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<version>${mockito-core.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>testcontainers</artifactId>
<version>1.19.8</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>kafka</artifactId>
<version>1.19.8</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>junit-jupiter</artifactId>
<version>1.19.8</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>${slf4j.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<defaultGoal>package</defaultGoal>
<resources>
<resource>
<directory>src/main/resources-filtered</directory>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
<filtering>false</filtering>
</resource>
</resources>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>${maven-assembly-plugin.version}</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptorSourceDirectory>${project.basedir}/src/assembly</descriptorSourceDirectory>
<appendAssemblyId>true</appendAssemblyId>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.gmaven</groupId>
<artifactId>groovy-maven-plugin</artifactId>
<version>${groovy-maven-plugin.version}</version>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-xml</artifactId>
<version>${groovy-xml.version}</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.gmaven</groupId>
<artifactId>groovy-maven-plugin</artifactId>
<executions>
<execution>
<phase>generate-resources</phase>
<goals>
<goal>execute</goal>
</goals>
<configuration>
<source>${project.basedir}/src/script/dependencies-as-var.groovy</source>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
</plugin>
</plugins>
</build>
<scm>
<url>https://github.com/${github.owner}/${github.repo}</url>
<developerConnection>scm:git:${project.scm.url}.git</developerConnection>
<connection>scm:git:${project.scm.url}.git</connection>
<tag>HEAD</tag>
</scm>
<distributionManagement>
<snapshotRepository>
<id>github</id>
<name>Github Package</name>
<url>https://maven.pkg.github.com/${github.owner}/${github.repo}</url>
</snapshotRepository>
<repository>
<id>github</id>
<name>Github Package</name>
<url>https://maven.pkg.github.com/${github.owner}/${github.repo}</url>
</repository>
</distributionManagement>
</project>