Skip to content

Commit 9e2cce3

Browse files
committed
feat(pom): 补 name/url,central-publishing-maven-plugin 升级 0.11.0,增加 maven-compiler-plugin 配置与 jacoco 覆盖率检查
1 parent a0df11a commit 9e2cce3

1 file changed

Lines changed: 68 additions & 2 deletions

File tree

pom.xml

Lines changed: 68 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
<groupId>io.github.easy4j</groupId>
66
<artifactId>codex-java-sdk</artifactId>
7+
<name>${project.groupId}:${project.artifactId}</name>
8+
<url>https://github.com/easy-4-java/${project.artifactId}</url>
79
<description>Codex CLI Java SDK — subprocess integration for OpenAI Codex agent</description>
810
<version>1.0.x.20260630-SNAPSHOT</version>
911
<name>${project.groupId}:${project.artifactId}</name>
@@ -230,6 +232,69 @@
230232
</plugin>
231233
</plugins>
232234
</pluginManagement>
235+
<plugins>
236+
<plugin>
237+
<groupId>org.jacoco</groupId>
238+
<artifactId>jacoco-maven-plugin</artifactId>
239+
<version>${jacoco-maven-plugin.version}</version>
240+
<executions>
241+
<execution>
242+
<id>prepare-agent</id>
243+
<goals>
244+
<goal>prepare-agent</goal>
245+
</goals>
246+
</execution>
247+
<execution>
248+
<id>report</id>
249+
<phase>verify</phase>
250+
<goals>
251+
<goal>report</goal>
252+
</goals>
253+
</execution>
254+
<execution>
255+
<id>check</id>
256+
<phase>verify</phase>
257+
<goals>
258+
<goal>check</goal>
259+
</goals>
260+
<configuration>
261+
<haltOnFailure>false</haltOnFailure>
262+
<rules>
263+
<rule>
264+
<element>BUNDLE</element>
265+
<limits>
266+
<limit>
267+
<counter>LINE</counter>
268+
<value>COVEREDRATIO</value>
269+
<minimum>0.90</minimum>
270+
</limit>
271+
</limits>
272+
</rule>
273+
</rules>
274+
</configuration>
275+
</execution>
276+
</executions>
277+
</plugin>
278+
<plugin>
279+
<groupId>org.apache.maven.plugins</groupId>
280+
<artifactId>maven-compiler-plugin</artifactId>
281+
<version>${maven-compiler-plugin.version}</version>
282+
<configuration>
283+
<source>${java.version}</source>
284+
<target>${java.version}</target>
285+
<parameters>true</parameters>
286+
<encoding>${project.build.sourceEncoding}</encoding>
287+
<maxmem>512M</maxmem>
288+
<annotationProcessorPaths>
289+
<path>
290+
<groupId>org.projectlombok</groupId>
291+
<artifactId>lombok</artifactId>
292+
<version>${lombok.version}</version>
293+
</path>
294+
</annotationProcessorPaths>
295+
</configuration>
296+
</plugin>
297+
</plugins>
233298
</build>
234299

235300
<profiles>
@@ -239,9 +304,10 @@
239304
<jdk>[1.8,)</jdk>
240305
</activation>
241306
<properties>
242-
<central-publishing-maven-plugin.version>0.7.0</central-publishing-maven-plugin.version>
307+
<central-publishing-maven-plugin.version>0.11.0</central-publishing-maven-plugin.version>
243308
<additionalparam>-Xdoclint:none</additionalparam>
244-
</properties>
309+
<jacoco-maven-plugin.version>0.8.15</jacoco-maven-plugin.version>
310+
</properties>
245311
</profile>
246312
<profile>
247313
<id>release</id>

0 commit comments

Comments
 (0)