Skip to content

Commit fce8f41

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

1 file changed

Lines changed: 69 additions & 3 deletions

File tree

‎pom.xml‎

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

55
<groupId>io.github.easy4j</groupId>
66
<artifactId>opencode-java-sdk</artifactId>
7+
<name>${project.groupId}:${project.artifactId}</name>
8+
<url>https://github.com/easy-4-java/${project.artifactId}</url>
79
<description>OpenCode Java SDK - JDK 1.8 line</description>
810
<version>1.0.x.20260630-SNAPSHOT</version>
911
<name>${project.groupId}:${project.artifactId}</name>
@@ -48,7 +50,7 @@
4850
</distributionManagement>
4951

5052
<properties>
51-
<central-publishing-maven-plugin.version>0.7.0</central-publishing-maven-plugin.version>
53+
<central-publishing-maven-plugin.version>0.11.0</central-publishing-maven-plugin.version>
5254
<java.version>1.8</java.version>
5355
<maven.compiler.source>${java.version}</maven.compiler.source>
5456
<maven.compiler.target>${java.version}</maven.compiler.target>
@@ -77,8 +79,9 @@
7779
<maven-resources-plugin.version>3.5.0</maven-resources-plugin.version>
7880
<maven-surefire-plugin.version>3.5.2</maven-surefire-plugin.version>
7981
<maven-source-plugin.version>3.4.0</maven-source-plugin.version>
80-
<maven-central-publishing-plugin.version>0.10.0</maven-central-publishing-plugin.version>
81-
</properties>
82+
<maven-central-publishing-plugin.version>0.11.0</maven-central-publishing-plugin.version>
83+
<jacoco-maven-plugin.version>0.8.15</jacoco-maven-plugin.version>
84+
</properties>
8285

8386
<dependencyManagement>
8487
<dependencies>
@@ -320,6 +323,69 @@
320323
</plugin>
321324
</plugins>
322325
</pluginManagement>
326+
<plugins>
327+
<plugin>
328+
<groupId>org.jacoco</groupId>
329+
<artifactId>jacoco-maven-plugin</artifactId>
330+
<version>${jacoco-maven-plugin.version}</version>
331+
<executions>
332+
<execution>
333+
<id>prepare-agent</id>
334+
<goals>
335+
<goal>prepare-agent</goal>
336+
</goals>
337+
</execution>
338+
<execution>
339+
<id>report</id>
340+
<phase>verify</phase>
341+
<goals>
342+
<goal>report</goal>
343+
</goals>
344+
</execution>
345+
<execution>
346+
<id>check</id>
347+
<phase>verify</phase>
348+
<goals>
349+
<goal>check</goal>
350+
</goals>
351+
<configuration>
352+
<haltOnFailure>false</haltOnFailure>
353+
<rules>
354+
<rule>
355+
<element>BUNDLE</element>
356+
<limits>
357+
<limit>
358+
<counter>LINE</counter>
359+
<value>COVEREDRATIO</value>
360+
<minimum>0.90</minimum>
361+
</limit>
362+
</limits>
363+
</rule>
364+
</rules>
365+
</configuration>
366+
</execution>
367+
</executions>
368+
</plugin>
369+
<plugin>
370+
<groupId>org.apache.maven.plugins</groupId>
371+
<artifactId>maven-compiler-plugin</artifactId>
372+
<version>${maven-compiler-plugin.version}</version>
373+
<configuration>
374+
<source>${java.version}</source>
375+
<target>${java.version}</target>
376+
<parameters>true</parameters>
377+
<encoding>${project.build.sourceEncoding}</encoding>
378+
<maxmem>512M</maxmem>
379+
<annotationProcessorPaths>
380+
<path>
381+
<groupId>org.projectlombok</groupId>
382+
<artifactId>lombok</artifactId>
383+
<version>${lombok.version}</version>
384+
</path>
385+
</annotationProcessorPaths>
386+
</configuration>
387+
</plugin>
388+
</plugins>
323389
</build>
324390

325391
<profiles>

0 commit comments

Comments
 (0)