-
Notifications
You must be signed in to change notification settings - Fork 5
/
pom.xml
296 lines (276 loc) · 9.99 KB
/
pom.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<!--
Compilation and installation of all modules in the local repository:
mvn clean install
Compilation and installation of all modules in the local repository, without running the tests nor generating Javadocs:
mvn clean install -DskipTests -Dmaven.javadoc.skip
Compilation of selected modules, sign with the given key and deploy to Maven Central:
mvn clean deploy -Prelease -Dgpg.keyname=5DA0DA74CADE10E6DDE646611983F53632921972
By using the maven-flatten-plugin, this pom.xml allows us to use properties to define
the versions of the artifacts: the properties will be replaced by their value in the deployed artifacts.
Moreover, this makes the parent pom useless, hence it is not deployed.
Note: submodules whose artifact must be deployed on Maven Central must activate the Nexus staging plugin
(see for instance the pom-xml of the io-hotmoka-node submodule).
-->
<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>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.release>17</maven.compiler.release>
<hotmoka.version>1.7.0</hotmoka.version>
<io.takamaka.code.version>1.3.1</io.takamaka.code.version>
<io.hotmoka.annotations.version>1.4.1</io.hotmoka.annotations.version>
<io.hotmoka.cli.version>1.2.2</io.hotmoka.cli.version>
<io.hotmoka.crypto.version>1.4.2</io.hotmoka.crypto.version>
<io.hotmoka.websockets.version>1.4.5</io.hotmoka.websockets.version>
<io.hotmoka.marshalling.version>1.4.5</io.hotmoka.marshalling.version>
<io.hotmoka.exceptions.version>1.4.1</io.hotmoka.exceptions.version>
<io.hotmoka.testing.version>1.4.1</io.hotmoka.testing.version>
<io.hotmoka.xodus.version>1.4.5</io.hotmoka.xodus.version>
<io.hotmoka.closeables.version>1.4.1</io.hotmoka.closeables.version>
<mokamint.version>1.0.0</mokamint.version>
</properties>
<groupId>io.hotmoka</groupId>
<artifactId>hotmoka</artifactId>
<packaging>pom</packaging>
<version>parent</version>
<name>Hotmoka</name>
<description>A network of nodes for blockchain or IoT, with smart contracts in Java.</description>
<url>https://github.com/Hotmoka/hotmoka</url>
<organization>
<url>https://www.hotmoka.io</url>
<name>Hotmoka</name>
</organization>
<inceptionYear>2019</inceptionYear>
<licenses>
<license>
<name>The Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<developers>
<developer>
<name>Fausto Spoto</name>
<email>[email protected]</email>
<organization>Hotmoka</organization>
<organizationUrl>https://www.hotmoka.io</organizationUrl>
<timezone>UTC+01:00</timezone>
</developer>
</developers>
<scm>
<connection>scm:git:git://github.com/Hotmoka/hotmoka.git</connection>
<developerConnection>scm:git:[email protected]:Hotmoka/hotmoka.git</developerConnection>
<url>https://github.com/Hotmoka/hotmoka</url>
<tag>HEAD</tag>
</scm>
<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>
<!-- specific profiles might add more modules to these -->
<modules>
<module>io-hotmoka-whitelisting-api</module>
<module>io-hotmoka-whitelisting</module>
<module>io-hotmoka-verification-api</module>
<module>io-hotmoka-verification</module>
<module>io-hotmoka-instrumentation-api</module>
<module>io-hotmoka-instrumentation</module>
<module>io-hotmoka-node-api</module>
<module>io-hotmoka-node</module>
<module>io-hotmoka-node-local-api</module>
<module>io-hotmoka-node-local</module>
<module>io-hotmoka-helpers-api</module>
<module>io-hotmoka-helpers</module>
<module>io-hotmoka-node-service-api</module>
<module>io-hotmoka-node-service</module>
<module>io-hotmoka-node-remote-api</module>
<module>io-hotmoka-node-remote</module>
<module>io-hotmoka-patricia-api</module>
<module>io-hotmoka-patricia</module>
<module>io-hotmoka-moka</module>
<module>io-hotmoka-node-disk-api</module>
<module>io-hotmoka-node-disk</module>
<module>io-hotmoka-node-tendermint-api</module>
<module>io-hotmoka-node-tendermint-abci</module>
<module>io-hotmoka-node-tendermint</module>
<module>io-hotmoka-node-messages-api</module>
<module>io-hotmoka-node-messages</module>
<module>io-hotmoka-node-mokamint-api</module>
<module>io-hotmoka-node-mokamint</module>
</modules>
<dependencies>
<!-- typical dependencies if submodules use JUnit 5 -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.9.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.9.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>5.3.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.hotmoka.testing</groupId>
<artifactId>io-hotmoka-testing</artifactId>
<version>${io.hotmoka.testing.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<includes>
<include>*.java</include>
</includes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.1.1</version>
<configuration>
<skip>true</skip> <!-- skip, since we are using nexus -->
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
<useReleaseProfile>false</useReleaseProfile>
<releaseProfiles>release</releaseProfiles>
<goals>deploy</goals>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>1.5.0</version>
<configuration>
<flattenMode>oss</flattenMode>
</configuration>
<executions>
<!-- enable flattening -->
<execution>
<id>flatten</id>
<phase>process-resources</phase>
<goals>
<goal>flatten</goal>
</goals>
</execution>
<!-- ensure proper cleanup -->
<execution>
<id>flatten.clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.5.0</version>
<configuration>
<failOnError>false</failOnError>
<failOnWarnings>false</failOnWarnings>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<!-- source jars get generated -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- the artifacts get signed -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- jars get sent to the remote repository -->
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.13</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>default</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<modules>
<module>io-hotmoka-examples</module>
<module>io-hotmoka-tests</module>
</modules>
</profile>
</profiles>
</project>