-
Notifications
You must be signed in to change notification settings - Fork 2
/
pom.xml
275 lines (244 loc) · 11.7 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
<?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.github.c0urante</groupId>
<artifactId>kafka-connect-reddit</artifactId>
<version>0.2.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>Kafka Connect Reddit</name>
<description>
A Kafka Connect Reddit connector for reading data from Reddit into Kafka.
</description>
<repositories>
<repository>
<id>Maven Central</id>
<url>https://repo.apache.maven.org</url>
</repository>
<repository>
<id>Bintray jCenter</id>
<url>https://jcenter.bintray.com</url>
</repository>
</repositories>
<licenses>
<license>
<name>DWTFPL Version 2</name>
<url>http://www.wtfpl.net/txt/copying/</url>
</license>
</licenses>
<scm>
<connection>scm:git:git://github.com/C0urante/kafka-connect-reddit.git</connection>
<developerConnection>scm:git:[email protected]:C0urante/kafka-connect-reddit.git</developerConnection>
<url>https://github.com/C0urante/kafka-connect-reddit</url>
<tag>HEAD</tag>
</scm>
<properties>
<jraw.version>1.1.0</jraw.version>
<junit.version>4.12</junit.version>
<kafka.version>2.0.0</kafka.version>
<kafka.connect.maven.plugin.version>0.11.1</kafka.connect.maven.plugin.version>
<maven.clean.plugin.version>3.1.0</maven.clean.plugin.version>
<maven.compiler.plugin.version>3.8.0</maven.compiler.plugin.version>
<moshi.version>1.6.0</moshi.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<slf4j.version>1.7.9</slf4j.version>
<docs.dir>${project.basedir}/docs</docs.dir>
<docs.config.file>source-connector-config</docs.config.file>
</properties>
<dependencies>
<dependency>
<groupId>com.squareup.moshi</groupId>
<artifactId>moshi</artifactId>
<version>${moshi.version}</version>
</dependency>
<dependency>
<groupId>net.dean.jraw</groupId>
<artifactId>JRAW</artifactId>
<version>${jraw.version}</version>
</dependency>
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>connect-api</artifactId>
<version>${kafka.version}</version>
<!--<scope>provided</scope>-->
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>${slf4j.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven.compiler.plugin.version}</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>io.confluent</groupId>
<artifactId>kafka-connect-maven-plugin</artifactId>
<version>${kafka.connect.maven.plugin.version}</version>
<executions>
<execution>
<id>Confluent Hub package</id>
<goals>
<goal>kafka-connect</goal>
</goals>
<configuration>
<description><![CDATA[
The source connector consumes posts and comments from Reddit in real time. It's
possible to read comments from one collection of subreddits and posts from a different
collection, and <a href="https://www.reddit.com/r/all/">r/all</a> can be read from for
either.
Separate topics are used for posts and comments; they default to reddit-posts and
reddit-comments respectively but can be configured differently if necessary.
<a href="https://github.com/mattbdean/jraw">JRAW</a> is used to continuously stream new
posts and comments; many thanks go to
<a href="https://github.com/mattbdean">Matt Dean</a> for creating that excellent
library.
This connector is currently intended for development and entertainment purposes only and
is not recommended or endorsed for production use cases.
]]></description>
<documentationUrl>${project.scm.url}</documentationUrl>
<sourceUrl>${project.scm.url}</sourceUrl>
<logo>${project.basedir}/logos/reddit.png</logo>
<ownerUsername>C0urante</ownerUsername>
<ownerName>Chris Egerton</ownerName>
<ownerType>user</ownerType>
<ownerLogo>${project.basedir}/logos/aku.jpeg</ownerLogo>
<supportProviderName>Open Source Community</supportProviderName>
<supportUrl>${project.scm.url}/issues</supportUrl>
<supportSummary>
This is an open-source project supported and maintained on a best-effort by the
community and its creator.
</supportSummary>
<supportLogo>${project.basedir}/logos/github.png</supportLogo>
<componentTypes>
<componentType>source</componentType>
</componentTypes>
<confluentControlCenterIntegration>true</confluentControlCenterIntegration>
<licenses>
<license>
<name>DWTFPL Version 2</name>
<url>http://www.wtfpl.net/txt/copying/</url>
<logo>${project.basedir}/logos/wtfpl.png</logo>
</license>
</licenses>
<tags>
<tag>reddit</tag>
<tag>stream</tag>
<tag>live</tag>
<tag>jraw</tag>
<tag>social</tag>
<tag>network</tag>
</tags>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</build>
<profiles>
<profile>
<id>docs</id>
<dependencies>
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>connect-api</artifactId>
<version>${kafka.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>${slf4j.version}</version>
<scope>compile</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<executions>
<execution>
<id>source-config-rst</id>
<phase>install</phase>
<goals>
<goal>java</goal>
</goals>
<configuration>
<mainClass>com.github.c0urante.kafka.connect.reddit.RedditSourceConnectorConfig</mainClass>
<arguments>
<argument>${docs.dir}/${docs.config.file}.rst</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>source-config-rst-to-md</id>
<phase>install</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>pandoc</executable>
<arguments>
<argument>${docs.dir}/${docs.config.file}.rst</argument>
<argument>-f</argument>
<argument>rst</argument>
<argument>-t</argument>
<argument>markdown_github</argument>
<argument>-o</argument>
<argument>${docs.dir}/${docs.config.file}.md</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>${maven.clean.plugin.version}</version>
<executions>
<execution>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
<configuration>
<filesets>
<fileset>
<directory>${docs.dir}</directory>
<includes>
<include>${docs.config.file}.rst</include>
<include>${docs.config.file}.md</include>
</includes>
</fileset>
</filesets>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>