-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpom.xml
More file actions
403 lines (395 loc) · 18.7 KB
/
Copy pathpom.xml
File metadata and controls
403 lines (395 loc) · 18.7 KB
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
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
<?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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>komm</groupId>
<artifactId>komm</artifactId>
<version>0.0.1</version>
<name>komm</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.release>21</maven.compiler.release>
<javafx.version>22</javafx.version>
<lombok.version>1.18.46</lombok.version>
<!-- Dev-run hub override: mvn javafx:run -Dapi.url=... [-Dwebsocket.url=...]
Empty by default. javafx:run forks the app JVM, so a bare -D on the mvn
command line never reaches it — these properties carry the value into
the <options> of the javafx plugin below. AppConfig reads them at
runtime; websocket.url is derived from api.url when not given. -->
<api.url></api.url>
<websocket.url></websocket.url>
<!-- Hub baked into app.properties at build time (resource filtering).
Localhost by default; the prod profile switches both to the official
hub. Distinct from the runtime api.url/websocket.url overrides above,
which apply to dev runs only and never change the built jar. The
hub.dev.* pair stays fixed on the dev values so the prod profile's
restore step can put them back into target/classes after packaging. -->
<hub.dev.url>http://localhost:8085</hub.dev.url>
<hub.dev.ws.url>ws://localhost:8085/ws</hub.dev.ws.url>
<!-- <hub.dev.url>https://kommvoice.com</hub.dev.url> -->
<!-- <hub.dev.ws.url>wss://kommvoice.com/ws</hub.dev.ws.url> -->
<hub.url>${hub.dev.url}</hub.url>
<hub.ws.url>${hub.dev.ws.url}</hub.ws.url>
</properties>
<dependencies>
<!-- https://mvnrepository.com/artifact/org.openjfx/javafx-controls -->
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>${javafx.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.openjfx/javafx-graphics -->
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-graphics</artifactId>
<version>${javafx.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.openjfx/javafx-base -->
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-base</artifactId>
<version>${javafx.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.openjfx/javafx-swing -->
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-swing</artifactId>
<version>${javafx.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.openjfx/javafx-media -->
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-media</artifactId>
<version>${javafx.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.kordamp.ikonli/ikonli-javafx -->
<dependency>
<groupId>org.kordamp.ikonli</groupId>
<artifactId>ikonli-javafx</artifactId>
<version>12.4.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.kordamp.ikonli/ikonli-material2-pack -->
<dependency>
<groupId>org.kordamp.ikonli</groupId>
<artifactId>ikonli-material2-pack</artifactId>
<version>12.4.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.kordamp.ikonli/ikonli-materialdesign2-pack -->
<dependency>
<groupId>org.kordamp.ikonli</groupId>
<artifactId>ikonli-materialdesign2-pack</artifactId>
<version>12.4.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.kordamp.ikonli/ikonli-feather-pack -->
<dependency>
<groupId>org.kordamp.ikonli</groupId>
<artifactId>ikonli-feather-pack</artifactId>
<version>12.4.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/io.github.mkpaz/atlantafx-base -->
<dependency>
<groupId>io.github.mkpaz</groupId>
<artifactId>atlantafx-base</artifactId>
<version>2.1.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/net.java.dev.jna/jna -->
<dependency>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna</artifactId>
<version>5.19.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/net.java.dev.jna/jna-platform -->
<dependency>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna-platform</artifactId>
<version>5.19.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.google.code.gson/gson -->
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.14.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/commons-io/commons-io -->
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.22.0</version>
</dependency>
<!--https://mvnrepository.com/artifact/org.glassfish.tyrus.bundles/tyrus-standalone-client -->
<dependency>
<groupId>org.glassfish.tyrus.bundles</groupId>
<artifactId>tyrus-standalone-client</artifactId>
<version>2.2.2</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.projectlombok/lombok -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/ch.qos.logback/logback-classic -->
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.5.34</version>
</dependency>
<!-- https://mvnrepository.com/artifact/dev.onvoid.webrtc/webrtc-java -->
<dependency>
<groupId>dev.onvoid.webrtc</groupId>
<artifactId>webrtc-java</artifactId>
<version>0.16.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.bouncycastle/bcpkix-jdk18on -->
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcpkix-jdk18on</artifactId>
<version>1.84</version>
</dependency>
<!--https://mvnrepository.com/artifact/org.springframework/spring-websocket -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-websocket</artifactId>
<version>7.0.7</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework/spring-messaging -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-messaging</artifactId>
<version>7.0.7</version>
</dependency>
<!-- https://mvnrepository.com/artifact/io.github.b077as.emojifx/emoji -->
<dependency>
<groupId>io.github.b077as.emojifx</groupId>
<artifactId>emoji</artifactId>
<version>1.0.1</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.fxmisc.richtext/richtextfx -->
<dependency>
<groupId>org.fxmisc.richtext</groupId>
<artifactId>richtextfx</artifactId>
<version>0.11.7</version>
</dependency>
<!-- https://mvnrepository.com/artifact/io.livekit/livekit-server -->
<dependency>
<groupId>io.livekit</groupId>
<artifactId>livekit-server</artifactId>
<version>0.15.1</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.microsoft.onnxruntime/onnxruntime -->
<dependency>
<groupId>com.microsoft.onnxruntime</groupId>
<artifactId>onnxruntime</artifactId>
<version>1.20.0</version>
</dependency>
<!-- https://github.com/henkelmax/rnnoise4j/releases/tag/2.1.3 -->
<dependency>
<groupId>de.maxhenkel.rnnoise4j</groupId>
<artifactId>rnnoise4j</artifactId>
<version>2.1.3</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.googlecode.soundlibs/mp3spi -->
<dependency>
<groupId>com.googlecode.soundlibs</groupId>
<artifactId>mp3spi</artifactId>
<version>1.9.5.4</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.github.kwhat/jnativehook -->
<dependency>
<groupId>com.github.kwhat</groupId>
<artifactId>jnativehook</artifactId>
<version>2.2.2</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.fifesoft/rsyntaxtextarea -->
<dependency>
<groupId>com.fifesoft</groupId>
<artifactId>rsyntaxtextarea</artifactId>
<version>4.0.1</version>
</dependency>
</dependencies>
<repositories>
<repository>
<id>maxhenkel</id>
<url>https://maven.maxhenkel.de/repository/public</url>
</repository>
</repositories>
<!-- mvn clean package -Ppackage (fat jar pointed at localhost, for dev)
mvn clean package -Ppackage,prod (production fat jar pointed at the official hub) -->
<profiles>
<profile>
<!-- Bakes the official hub into app.properties. Combine with the
package profile for the distributable jar: -Ppackage,prod -->
<id>prod</id>
<properties>
<hub.url>https://kommvoice.com</hub.url>
<hub.ws.url>wss://kommvoice.com/ws</hub.ws.url>
</properties>
<build>
<plugins>
<!-- The prod URLs are for the shipped jar only: once it is built,
re-filter app.properties in target/classes back to the dev
(localhost) values. Without this, an IDE run of the main class
after a prod build — which uses target/classes as-is — would
silently talk to the production hub. Runs after shade within
the package phase (profile plugins execute after the main
build's plugins within a phase). -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>restore-dev-app-properties</id>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<copy file="${project.basedir}/src/main/resources/app.properties"
todir="${project.build.directory}/classes"
overwrite="true" encoding="UTF-8" outputencoding="UTF-8">
<filterset begintoken="${" endtoken="}">
<filter token="hub.url" value="${hub.dev.url}"/>
<filter token="hub.ws.url" value="${hub.dev.ws.url}"/>
<filter token="project.version" value="${project.version}"/>
</filterset>
</copy>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>package</id>
<dependencies>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-graphics</artifactId>
<version>${javafx.version}</version>
<classifier>win</classifier>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-graphics</artifactId>
<version>${javafx.version}</version>
<classifier>linux</classifier>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-media</artifactId>
<version>${javafx.version}</version>
<classifier>win</classifier>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-media</artifactId>
<version>${javafx.version}</version>
<classifier>linux</classifier>
</dependency>
<!-- NO webrtc-java native classifier deps here (linux-x86_64 removed,
windows-x86_64 was removed earlier for the same reason): the fixed
native libraries from the B077AS/webrtc-java fork branch
fix/windows-desktop-capture ship in src/main/resources/
(webrtc-java-windows-x86_64.dll, libwebrtc-java-linux-x86_64.so —
the linux one adds the any-screen-content Wayland portal picker).
Including a classifier dep would shade the official native lib
into the fat jar alongside ours and make NativeLoader's pick
dependent on shade ordering. -->
</dependencies>
</profile>
</profiles>
<build>
<!-- Only app.properties is filtered, so ${project.version} lands in its
client.version entry at build time; everything else is copied verbatim
(blanket filtering would corrupt binary resources and any file that
happens to contain ${...} sequences). -->
<resources>
<resource>
<directory>src/main/resources</directory>
<excludes>
<exclude>app.properties</exclude>
</excludes>
</resource>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>app.properties</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>0.0.8</version>
<configuration>
<mainClass>komm.Launcher</mainClass>
<options>
<option>-Dapi.url=${api.url}</option>
<option>-Dwebsocket.url=${websocket.url}</option>
<option>--add-opens=javafx.controls/com.sun.javafx.scene.control.skin=ALL-UNNAMED</option>
<option>--add-opens=javafx.graphics/com.sun.javafx.scene=ALL-UNNAMED</option>
<option>--add-opens=javafx.graphics/com.sun.javafx.scene.text=ALL-UNNAMED</option>
<option>--add-opens=javafx.controls/javafx.scene.control.skin=ALL-UNNAMED</option>
</options>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.15.0</version>
<configuration>
<release>21</release>
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.6.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>komm.Launcher</mainClass>
<manifestEntries>
<Implementation-Version>${project.version}</Implementation-Version>
</manifestEntries>
</transformer>
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
</transformers>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
<!-- mvn clean package -Ppackage -->
<!-- mvn clean package -Ppackage,prod -->