-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathpom.xml
More file actions
367 lines (349 loc) · 14.4 KB
/
pom.xml
File metadata and controls
367 lines (349 loc) · 14.4 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
<?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.yishape.lab</groupId>
<artifactId>yishape-math</artifactId>
<version>0.3.8</version>
<packaging>jar</packaging>
<name>YiShape Math</name>
<description>
Java library for numerical computation, statistics, linear algebra, optimization, plotting (JavaFX/ECharts), and related utilities.
Requires Java 21+; compile/runtime uses the incubator Vector API module (jdk.incubator.vector).
</description>
<url>https://github.com/scalefree-tech/yishape-math</url>
<inceptionYear>2025</inceptionYear>
<licenses>
<license>
<name>MIT License</name>
<url>https://opensource.org/licenses/MIT</url>
<distribution>repo</distribution>
</license>
</licenses>
<!-- Sonatype 后台核准 groupId 后,建议补充 developer id / email / organizationUrl -->
<developers>
<developer>
<id>scale-free-tech</id>
<name>Maintainer</name>
<organization>Scale-Free Tech</organization>
<roles>
<role>developer</role>
</roles>
</developer>
</developers>
<scm>
<connection>scm:git:https://github.com/scalefree-tech/yishape-math.git</connection>
<developerConnection>scm:git:ssh://git@github.com:ScaleFree-Tech/yishape-math.git</developerConnection>
<url>https://github.com/scalefree-tech/yishape-math</url>
<tag>HEAD</tag>
</scm>
<issueManagement>
<system>GitHub Issues</system>
<url>https://github.com/scalefree-tech/yishape-math/issues</url>
</issueManagement>
<!-- 部署地址以 Sonatype / Maven Central 注册邮箱中的说明为准(可能是 ossrh 或 s01.oss.sonatype.org) -->
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.release>21</maven.compiler.release>
<maven.surefire.argLine>--enable-native-access=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-modules jdk.incubator.vector</maven.surefire.argLine>
<!-- JaCoCo 与 Surefire 共用:prepare-agent 会注入 agent 前缀 -->
<argLine>${maven.surefire.argLine}</argLine>
</properties>
<!-- 发布到 Maven Central 的 POM 不应声明额外仓库;依赖须可从 Maven Central 解析 -->
<dependencies>
<!-- Support for OpenCL GPUs -->
<!--
<dependency>
<groupId>com.aparapi</groupId>
<artifactId>aparapi</artifactId>
<version>3.0.2</version>
<optional>true</optional>
</dependency>
-->
<!-- Support for CSV files reading -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-csv</artifactId>
<version>1.10.0</version>
</dependency>
<!-- Support for ECharts.js plotting -->
<dependency>
<groupId>org.icepear.echarts</groupId>
<artifactId>echarts-java</artifactId>
<version>1.1.0</version>
</dependency>
<!-- JavaFX dependencies for plotting -->
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>21.0.2</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-swing</artifactId>
<version>21.0.2</version>
</dependency>
<!-- Support for MP3 decoding -->
<dependency>
<groupId>javazoom</groupId>
<artifactId>jlayer</artifactId>
<version>1.0.1</version>
</dependency>
<dependency>
<groupId>com.googlecode.soundlibs</groupId>
<artifactId>mp3spi</artifactId>
<version>1.9.5.4</version>
</dependency>
<!-- Support for OGG Vorbis decoding -->
<dependency>
<groupId>org.jcraft</groupId>
<artifactId>jorbis</artifactId>
<version>0.0.17</version>
</dependency>
<!--主要用于初期测试自研求解器求解的正确性,性能稳定后将删除依赖-->
<!--
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-math4-legacy</artifactId>
<version>4.0-beta1</version>
</dependency>
-->
<!-- SLF4J API:库内记录日志,由应用提供绑定实现 -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>2.0.16</version>
</dependency>
<!--
仅测试使用:scope=test 的依赖不会参与主代码编译产物的传递解析,
发布到仓库的 POM 中虽会列出,但引用本库时 Maven 不会拉取这些依赖;
主 JAR 仅含 src/main,不含 JUnit 与 src/test。
-->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.10.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>2.0.16</version>
<scope>test</scope>
</dependency>
<!--
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.40</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.36</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.36</version>
</dependency>
-->
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.14.1</version>
<configuration>
<release>21</release>
<encoding>utf8</encoding>
<!-- 如果你的项目使用了类似Vector API这样的孵化模块,需要额外配置编译器参数 -->
<compilerArgs>
<arg>--add-modules</arg>
<arg>jdk.incubator.vector</arg>
</compilerArgs>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<classpathScope>test</classpathScope>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>3.14.0</version>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
<tagNameFormat>v@{project.version}</tagNameFormat>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.5</version>
<configuration>
<includes>
<include>**/*Test.java</include>
<include>**/*Tests.java</include>
</includes>
<argLine>${argLine}</argLine>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.4.2</version>
<configuration>
<archive>
<compress>true</compress> <!-- 启用压缩 -->
<index>true</index> <!-- 创建索引加快加载 -->
<manifestEntries>
<Automatic-Module-Name>com.yishape.lab.math</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.11.3</version>
<configuration>
<!-- 使用 release;勿再使用已过时的 -source 1.1 / -1.1 等选项 -->
<release>21</release>
<doclint>none</doclint>
<quiet>true</quiet>
<!-- 与 compiler 一致:否则 javadoc 无法解析 jdk.incubator.vector -->
<additionalOptions>
<additionalOption>--add-modules</additionalOption>
<additionalOption>jdk.incubator.vector</additionalOption>
</additionalOptions>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.12</version>
<executions>
<execution>
<id>jacoco-prepare</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>jacoco-report</id>
<phase>verify</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>4.9.3.0</version>
<configuration>
<effort>Max</effort>
<threshold>Medium</threshold>
<failOnError>false</failOnError>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>prepare-package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>
${project.build.directory}/libs
</outputDirectory>
<!-- copy-dependencies 默认仅处理 runtime 作用域,不包含 scope=test(JUnit、slf4j-simple 测试绑定等) -->
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<!-- 中央仓库发布:本地先配置 ~/.m2/settings.xml 中 server id=ossrh 的用户名/密码(Token);再执行 -Prelease-sign -->
<profiles>
<profile>
<id>github-packages</id>
<distributionManagement>
<repository>
<id>github</id>
<url>https://maven.pkg.github.com/scalefree-tech/yishape-math</url>
</repository>
<snapshotRepository>
<id>github</id>
<url>https://maven.pkg.github.com/scalefree-tech/yishape-math</url>
</snapshotRepository>
</distributionManagement>
</profile>
<profile>
<id>release-sign</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.2.7</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
<configuration>
<!-- CI 无 TTY 时可改用 pinentry-mode loopback + MAVEN_GPG_PASSPHRASE 环境变量 -->
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>