-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpom.xml
More file actions
507 lines (484 loc) · 24 KB
/
pom.xml
File metadata and controls
507 lines (484 loc) · 24 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
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
<?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>com.quasarbyte.llm.codereview</groupId>
<artifactId>llm-code-review-cli</artifactId>
<packaging>jar</packaging>
<version>0.2.1-SNAPSHOT</version>
<name>LLM Code Review CLI</name>
<url>https://github.com/QuasarByte/llm-code-review-maven-plugin</url>
<description>
A command-line application for automated code review using Large Language Models (LLMs).
Provides AI-powered code analysis from your terminal.
</description>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0</url>
</license>
</licenses>
<developers>
<developer>
<id>taluyev</id>
<name>Roman Taluyev</name>
<email>taluyev+llm-code-review@gmail.com</email>
<organization>Roman Taluyev</organization>
<url>https://www.linkedin.com/in/taluyev/</url>
</developer>
</developers>
<scm>
<connection>scm:git:git://github.com/QuasarByte/llm-code-review-maven-plugin</connection>
<developerConnection>scm:git:ssh://github.com/QuasarByte/llm-code-review-maven-plugin</developerConnection>
<url>https://github.com/QuasarByte/llm-code-review-maven-plugin</url>
</scm>
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<junit.jupiter.version>5.11.4</junit.jupiter.version>
<mockito.version>4.11.0</mockito.version>
<jdk.24.home>C:\opt\java\jdk-24.0.1</jdk.24.home>
</properties>
<dependencies>
<!-- Picocli for command line parsing -->
<dependency>
<groupId>info.picocli</groupId>
<artifactId>picocli</artifactId>
<version>4.7.7</version>
</dependency>
<!-- Jackson for JSON processing -->
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
<version>2.18.2</version>
</dependency>
<!-- Logging -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>2.0.17</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.3.14</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${junit.jupiter.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>${junit.jupiter.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>${mockito.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<version>${mockito.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>mockwebserver</artifactId>
<version>4.12.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.quasarbyte.llm.codereview</groupId>
<artifactId>sdk</artifactId>
<version>0.2.1-SNAPSHOT</version>
</dependency>
</dependencies>
<build>
<plugins>
<!-- Configure compiler to only include CLI tests -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.13.0</version>
<configuration>
<source>8</source>
<target>8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.5.3</version>
<configuration>
<includes>
<include>**/*Test.java</include>
</includes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.5.3</version>
<configuration>
<includes>
<include>**/*IT.java</include>
</includes>
</configuration>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.1</version>
<executions>
<execution>
<id>attach-sources</id>
<phase>verify</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Generate third-party license file -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>2.4.0</version>
<executions>
<execution>
<id>add-third-party</id>
<goals>
<goal>add-third-party</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<outputDirectory>${project.build.outputDirectory}/META-INF</outputDirectory>
<thirdPartyFilename>THIRD-PARTY-LICENSES.txt</thirdPartyFilename>
<includeTransitiveDependencies>true</includeTransitiveDependencies>
<excludedScopes>test</excludedScopes>
<failOnMissing>false</failOnMissing>
<useMissingFile>true</useMissingFile>
<missingFile>src/license/THIRD-PARTY.properties</missingFile>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.5.2</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>com.quasarbyte.llm.codereview.cli.LlmCodeReviewCli</mainClass>
</transformer>
<!-- Merge service files -->
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
<!-- Handle license files from dependencies -->
<transformer implementation="org.apache.maven.plugins.shade.resource.ApacheLicenseResourceTransformer"/>
<!-- Append NOTICE files -->
<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>META-INF/NOTICE</resource>
</transformer>
<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>META-INF/NOTICE.txt</resource>
</transformer>
<!-- Handle Spring Boot configuration files -->
<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>META-INF/spring.factories</resource>
</transformer>
<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>META-INF/spring.schemas</resource>
</transformer>
<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>META-INF/spring.handlers</resource>
</transformer>
</transformers>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<!-- Exclude module-info.class files that cause warnings -->
<exclude>module-info.class</exclude>
<exclude>META-INF/versions/*/module-info.class</exclude>
<!-- Exclude technical files that cause harmless warnings -->
<exclude>META-INF/DEPENDENCIES</exclude>
<exclude>META-INF/*.kotlin_module</exclude>
<!-- Exclude manifest files (shade creates its own) -->
<exclude>META-INF/MANIFEST.MF</exclude>
<!-- Exclude duplicate licensing files (handled by ApacheLicenseResourceTransformer) -->
<exclude>META-INF/LICENSE</exclude>
<exclude>META-INF/LICENSE.txt</exclude>
<!-- Exclude duplicate NOTICE files (handled by AppendingTransformer) -->
<exclude>META-INF/NOTICE</exclude>
<exclude>META-INF/NOTICE.txt</exclude>
<!-- Exclude Maven metadata that causes overlaps -->
<exclude>META-INF/maven/**</exclude>
<!-- Exclude signature files -->
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
<!-- Exclude Kotlin metadata that causes overlaps -->
<exclude>**/*.kotlin_metadata</exclude>
<!-- Note: DO NOT exclude *.kotlin_builtins as Jackson Kotlin module needs them for reflection -->
<!-- Exclude version files -->
<exclude>META-INF/versions/**</exclude>
<!-- Exclude native image configurations -->
<exclude>META-INF/native-image/**</exclude>
<!-- Exclude ProGuard configurations -->
<exclude>META-INF/proguard/**</exclude>
<!-- Exclude Android tools configurations -->
<exclude>META-INF/com.android.tools/**</exclude>
</excludes>
</filter>
<!-- Keep our own project classes and resources (including THIRD-PARTY-LICENSES.txt) -->
<filter>
<artifact>com.quasarbyte.llm.codereview:llm-code-review-cli</artifact>
<includes>
<include>**</include>
</includes>
</filter>
<!-- Keep our SDK classes -->
<filter>
<artifact>com.quasarbyte.llm.codereview:sdk</artifact>
<includes>
<include>**</include>
</includes>
</filter>
</filters>
<!-- Relocate packages to avoid conflicts -->
<relocations>
<relocation>
<pattern>com.google.common</pattern>
<shadedPattern>shaded.com.google.common</shadedPattern>
</relocation>
<relocation>
<pattern>org.apache.commons</pattern>
<shadedPattern>shaded.org.apache.commons</shadedPattern>
</relocation>
<relocation>
<pattern>org.apache.http</pattern>
<shadedPattern>shaded.org.apache.http</shadedPattern>
</relocation>
<relocation>
<pattern>okio</pattern>
<shadedPattern>shaded.okio</shadedPattern>
<excludes>
<exclude>okio.*</exclude>
</excludes>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>jdk-11-plus</id>
<activation>
<!--
Automatically activates if Maven is run with JDK 11 or higher.
This profile is a temporary workaround to restore JAXB support,
since JAXB was removed from the JDK after Java 8.
-->
<jdk>[11,)</jdk>
</activation>
<dependencies>
<!--
TEMPORARY SOLUTION:
Adds legacy JAXB dependencies (javax.xml.bind and com.sun.xml.bind)
to enable JAXB support on JDK 11 and newer.
These versions are compatible with JDK 11 and work for demo/migration purposes.
NOTE FOR ENGINEERS:
For long-term support and compatibility with the latest Java (17, 21+),
consider updating these dependencies to 'jakarta.xml.bind' API and runtime
(see jakarta.xml.bind:jakarta.xml.bind-api and org.glassfish.jaxb:jaxb-runtime).
See https://projects.eclipse.org/projects/ee4j.jaxb for details.
-->
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-core</artifactId>
<version>2.3.0.1</version>
</dependency>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>2.3.1</version>
</dependency>
</dependencies>
<properties>
<!--
Set Java compilation target to 11.
Adjust this value according to your team's base JDK.
-->
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
</properties>
</profile>
<!-- JRE pack with jlink, no modules, just runtime + jar and launcher -->
<profile>
<id>portable-jre</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<dependencies>
</dependencies>
<build>
<plugins>
<!-- 1. jlink: build minimal JRE -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>run-jlink</id>
<phase>package</phase>
<configuration>
<target>
<mkdir dir="${project.build.directory}/portable"/>
<exec executable="${jdk.24.home}/bin/jlink">
<arg value="--module-path"/>
<arg value="${jdk.24.home}/jmods"/>
<arg value="--add-modules"/>
<arg value="java.base,java.compiler,java.datatransfer,java.desktop,java.instrument,java.logging,java.management,java.management.rmi,java.naming,java.net.http,java.prefs,java.rmi,java.scripting,java.se,java.security.jgss,java.security.sasl,java.sql,java.sql.rowset,java.transaction.xa,java.xml,java.xml.crypto"/>
<arg value="--output"/>
<arg value="${project.build.directory}/portable/jre"/>
<arg value="--compress"/>
<arg value="2"/>
<arg value="--no-header-files"/>
<arg value="--no-man-pages"/>
<arg value="--strip-debug"/>
</exec>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.3.1</version>
<executions>
<execution>
<id>copy-portable-resources</id>
<phase>package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/portable</outputDirectory>
<resources>
<resource>
<directory>${project.build.directory}</directory>
<includes>
<include>${project.build.finalName}.jar</include>
</includes>
</resource>
<resource>
<directory>portable-launcher</directory>
<includes>
<include>**/*</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.6.0</version>
<executions>
<execution>
<id>make-portable-archive</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<finalName>llm-code-review-portable</finalName>
<formats>
<format>zip</format>
</formats>
<descriptors>
<descriptor>src/assembly/portable.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<!-- Database profiles for testing -->
<profile>
<id>test-memory</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<test.db.type>memory</test.db.type>
</properties>
</profile>
<profile>
<id>test-temp</id>
<properties>
<test.db.type>temp</test.db.type>
</properties>
</profile>
<profile>
<id>test-target</id>
<properties>
<test.db.type>target</test.db.type>
</properties>
</profile>
<profile>
<id>test-mysql</id>
<properties>
<test.db.type>mysql</test.db.type>
</properties>
</profile>
<profile>
<id>test-postgresql</id>
<properties>
<test.db.type>postgresql</test.db.type>
</properties>
</profile>
</profiles>
</project>