-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpom.xml
More file actions
159 lines (144 loc) · 6.51 KB
/
Copy pathpom.xml
File metadata and controls
159 lines (144 loc) · 6.51 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
<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>jdiskmark</groupId>
<artifactId>jdm-java</artifactId>
<version>0.8.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Java Disk Benchmark Utility</name>
<modules>
<module>jdm-core</module>
<module>jdm-dist</module>
</modules>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.release>25</maven.compiler.release>
<exec.mainClass>jdiskmark.App</exec.mainClass>
<jackson.version>2.17.0</jackson.version>
<maven.compiler.plugin.version>3.13.0</maven.compiler.plugin.version>
<maven.shade.plugin.version>3.5.2</maven.shade.plugin.version>
<maven.assembly.plugin.version>3.6.0</maven.assembly.plugin.version>
<jdeb.plugin.version>1.10</jdeb.plugin.version>
<rpm.plugin.version>2.2.0</rpm.plugin.version>
<exec.plugin.version>3.2.0</exec.plugin.version>
<!-- package properties -->
<pkg.name>jdiskmark</pkg.name>
<app.name>JDiskMark</app.name>
<!-- MSI (Windows Installer) requires a purely numeric version in Major.Minor.Build
format — no letters, no -SNAPSHOT. This is an MSI format restriction, not
jpackage itself. Linux packages (DEB/RPM) can use the full project.version.
Update this alongside project.version when cutting a release. -->
<msi.version>0.8.0</msi.version>
<app.title>${app.name} ${project.version}</app.title>
<release.dir>${pkg.name}-${msi.version}</release.dir>
<!-- JVM options passed to jpackage for all installer types -->
<jvm.run.options>-XX:+UseZGC</jvm.run.options>
<!-- App icon selection — one file per platform, relative to each dist module.
Override at build time to switch icons (must point to an existing file), e.g.:
mvn install -Pwindows-msi -Dapp.icon.win=jdm-turtle-logo.ico
mvn install -Plinux-deb -Dapp.icon.linux=jdm-turtle-logo-256x256.png
Note: macOS icon is resolved by package-pkg.sh (not this property). -->
<app.icon.win>jdm-turtle-logo.ico</app.icon.win>
<app.icon.mac>images/JDiskMark-turtle.icns</app.icon.mac>
<app.icon.linux>jdm-turtle-logo-256x256.png</app.icon.linux>
<!-- RPM version must not contain hyphens -->
<rpm.version>0.8.0</rpm.version>
<!-- macos versions do not accept values less than 1.0.0 -->
<dmg.version>1.0.0</dmg.version>
<!-- MSI code signing properties (used by -Psign profile in jdm-msi).
signtool.exe ships with the Windows SDK. Update the path if your
SDK version differs. -->
<signtool.executable>C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x86\signtool.exe</signtool.executable>
<timestamp.server.url>http://timestamp.sectigo.com</timestamp.server.url>
<sign.digest.td>sha256</sign.digest.td>
<sign.digest.fd>sha256</sign.digest.fd>
</properties>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven.compiler.plugin.version}</version>
<configuration>
<release>${maven.compiler.release}</release>
<compilerArgs>
<arg>--enable-preview</arg>
</compilerArgs>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>${maven.shade.plugin.version}</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>${exec.mainClass}</mainClass>
</transformer>
</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>
</pluginManagement>
</build>
<profiles>
<profile>
<id>win-msi</id>
<activation>
<os>
<family>windows</family>
</os>
</activation>
<modules>
<module>jdm-core</module>
<module>jdm-dist</module>
</modules>
</profile>
<profile>
<id>linux-deb</id>
<activation>
<os>
<family>unix</family>
<name>linux</name>
</os>
</activation>
<modules>
<module>jdm-core</module>
<module>jdm-dist</module>
</modules>
</profile>
<profile>
<id>macos-pkg</id>
<activation>
<os>
<family>mac</family>
</os>
</activation>
<modules>
<module>jdm-core</module>
<module>jdm-dist</module>
</modules>
</profile>
</profiles>
</project>