|
1 | | -<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/maven-v4_0_0.xsd"> |
| 1 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 2 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 3 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
2 | 4 | <modelVersion>4.0.0</modelVersion> |
| 5 | + |
3 | 6 | <groupId>org.web3j</groupId> |
4 | 7 | <artifactId>web3j-maven-plugin</artifactId> |
| 8 | + <version>5.0.2</version> |
5 | 9 | <packaging>maven-plugin</packaging> |
6 | | - <version>4.14.1-SNAPSHOT</version> |
7 | 10 |
|
8 | 11 | <name>web3j Maven Mojo</name> |
9 | | - <description>Mojo's web3j Maven plugin is used to create java classes based on the solidity |
10 | | - contract files. |
| 12 | + <description> |
| 13 | + Mojo's web3j Maven plugin is used to create java classes based on the solidity contract files. |
11 | 14 | </description> |
12 | 15 | <url>https://web3j.io</url> |
13 | 16 |
|
14 | 17 | <properties> |
15 | 18 | <maven.compiler.source>21</maven.compiler.source> |
16 | 19 | <maven.compiler.target>21</maven.compiler.target> |
| 20 | + |
| 21 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 22 | + |
17 | 23 | <maven.version>3.9.9</maven.version> |
18 | 24 | <maven-plugin.version>3.13.0</maven-plugin.version> |
19 | | - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
20 | | - <web3j.version>4.14.0</web3j.version> |
| 25 | + |
| 26 | + <web3j.version>5.0.2</web3j.version> |
| 27 | + |
| 28 | + <!-- Central Portal publishing plugin --> |
| 29 | + <central.publishing.plugin.version>0.10.0</central.publishing.plugin.version> |
| 30 | + <!-- Signing/source/javadoc plugins --> |
| 31 | + <maven.source.plugin.version>3.3.1</maven.source.plugin.version> |
| 32 | + <maven.javadoc.plugin.version>3.8.0</maven.javadoc.plugin.version> |
| 33 | + <maven.gpg.plugin.version>3.2.7</maven.gpg.plugin.version> |
| 34 | + |
| 35 | + <junit.version>5.11.4</junit.version> |
| 36 | + <surefire.version>3.5.2</surefire.version> |
21 | 37 | </properties> |
22 | 38 |
|
23 | 39 | <licenses> |
|
41 | 57 | <connection>scm:git:git://ssh@github.com/LFDT-web3j/${project.artifactId}.git</connection> |
42 | 58 | <developerConnection>scm:git:ssh://git@github.com/LFDT-web3j/${project.artifactId}.git</developerConnection> |
43 | 59 | <url>https://github.com/LFDT-web3j/${project.artifactId}.git</url> |
44 | | - <tag>web3j-maven-plugin-4.14.0</tag> |
| 60 | + <tag>HEAD</tag> |
45 | 61 | </scm> |
46 | 62 |
|
| 63 | + <!-- Repositories are not required for publishing to Central. |
| 64 | + Keep ONLY if you truly need them to resolve deps at build time. --> |
47 | 65 | <repositories> |
48 | 66 | <repository> |
49 | 67 | <id>central</id> |
50 | 68 | <url>https://repo1.maven.org/maven2/</url> |
51 | | - <snapshots> |
52 | | - <enabled>true</enabled> |
53 | | - </snapshots> |
54 | | - <releases> |
55 | | - <enabled>true</enabled> |
56 | | - </releases> |
57 | | - </repository> |
58 | | - <repository> |
59 | | - <id>apache-snapshots</id> |
60 | | - <name>Apache Snapshots Repository</name> |
61 | | - <url>https://repository.apache.org/snapshots</url> |
62 | | - <snapshots> |
63 | | - <enabled>true</enabled> |
64 | | - </snapshots> |
65 | | - <releases> |
66 | | - <enabled>false</enabled> |
67 | | - </releases> |
68 | | - </repository> |
69 | | - <repository> |
70 | | - <id>apache-releases</id> |
71 | | - <name>Apache Releases Repository</name> |
72 | | - <url>https://repository.apache.org/content/repositories/releases/</url> |
73 | | - <snapshots> |
74 | | - <enabled>false</enabled> |
75 | | - </snapshots> |
76 | | - <releases> |
77 | | - <enabled>true</enabled> |
78 | | - </releases> |
| 69 | + <snapshots><enabled>false</enabled></snapshots> |
| 70 | + <releases><enabled>true</enabled></releases> |
79 | 71 | </repository> |
80 | 72 | <repository> |
81 | 73 | <id>consensys</id> |
82 | 74 | <url>https://artifacts.consensys.net/public/maven/maven</url> |
83 | | - <snapshots> |
84 | | - <enabled>true</enabled> |
85 | | - </snapshots> |
| 75 | + <snapshots><enabled>true</enabled></snapshots> |
| 76 | + <releases><enabled>true</enabled></releases> |
86 | 77 | </repository> |
87 | 78 | </repositories> |
88 | 79 |
|
|
93 | 84 | </pluginRepository> |
94 | 85 | </pluginRepositories> |
95 | 86 |
|
| 87 | + <dependencyManagement> |
| 88 | + <dependencies> |
| 89 | + <dependency> |
| 90 | + <groupId>org.junit</groupId> |
| 91 | + <artifactId>junit-bom</artifactId> |
| 92 | + <version>${junit.version}</version> |
| 93 | + <type>pom</type> |
| 94 | + <scope>import</scope> |
| 95 | + </dependency> |
| 96 | + </dependencies> |
| 97 | + </dependencyManagement> |
| 98 | + |
96 | 99 | <dependencies> |
97 | 100 | <dependency> |
98 | 101 | <groupId>org.apache.maven</groupId> |
|
115 | 118 | <artifactId>file-management</artifactId> |
116 | 119 | <version>3.0.0</version> |
117 | 120 | </dependency> |
| 121 | + |
118 | 122 | <dependency> |
119 | 123 | <groupId>org.web3j</groupId> |
120 | 124 | <artifactId>codegen</artifactId> |
|
126 | 130 | <version>${web3j.version}</version> |
127 | 131 | </dependency> |
128 | 132 |
|
| 133 | + <dependency> |
| 134 | + <groupId>com.googlecode.json-simple</groupId> |
| 135 | + <artifactId>json-simple</artifactId> |
| 136 | + <version>1.1.1</version> |
| 137 | + </dependency> |
| 138 | + |
| 139 | + <dependency> |
| 140 | + <groupId>org.web3j</groupId> |
| 141 | + <artifactId>web3j-sokt</artifactId> |
| 142 | + <version>0.6.0</version> |
| 143 | + </dependency> |
| 144 | + |
| 145 | + <dependency> |
| 146 | + <groupId>org.apache.commons</groupId> |
| 147 | + <artifactId>commons-lang3</artifactId> |
| 148 | + <version>3.20.0</version> |
| 149 | + </dependency> |
| 150 | + <dependency> |
| 151 | + <groupId>commons-io</groupId> |
| 152 | + <artifactId>commons-io</artifactId> |
| 153 | + <version>2.18.0</version> |
| 154 | + </dependency> |
| 155 | + |
| 156 | + <!-- tests --> |
| 157 | + <dependency> |
| 158 | + <groupId>org.junit.jupiter</groupId> |
| 159 | + <artifactId>junit-jupiter</artifactId> |
| 160 | + <scope>test</scope> |
| 161 | + </dependency> |
| 162 | + |
129 | 163 | <dependency> |
130 | 164 | <groupId>junit</groupId> |
131 | 165 | <artifactId>junit</artifactId> |
|
135 | 169 | <dependency> |
136 | 170 | <groupId>org.junit.vintage</groupId> |
137 | 171 | <artifactId>junit-vintage-engine</artifactId> |
138 | | - <version>5.11.4</version> |
139 | 172 | <scope>test</scope> |
140 | 173 | </dependency> |
141 | 174 |
|
|
151 | 184 | <version>${maven.version}</version> |
152 | 185 | <scope>test</scope> |
153 | 186 | </dependency> |
154 | | - <dependency> |
155 | | - <groupId>com.googlecode.json-simple</groupId> |
156 | | - <artifactId>json-simple</artifactId> |
157 | | - <version>1.1.1</version> |
158 | | - </dependency> |
159 | | - <dependency> |
160 | | - <groupId>org.web3j</groupId> |
161 | | - <artifactId>web3j-sokt</artifactId> |
162 | | - <version>0.4.0</version> |
163 | | - </dependency> |
164 | | - |
165 | | - <dependency> |
166 | | - <groupId>org.apache.commons</groupId> |
167 | | - <artifactId>commons-lang3</artifactId> |
168 | | - <version>3.20.0</version> |
169 | | - </dependency> |
170 | | - <dependency> |
171 | | - <groupId>commons-io</groupId> |
172 | | - <artifactId>commons-io</artifactId> |
173 | | - <version>2.18.0</version> |
174 | | - </dependency> |
175 | 187 | </dependencies> |
176 | 188 |
|
177 | 189 | <build> |
178 | 190 | <plugins> |
| 191 | + <!-- Generates the plugin descriptor (META-INF/maven/plugin.xml) --> |
179 | 192 | <plugin> |
180 | 193 | <groupId>org.apache.maven.plugins</groupId> |
181 | 194 | <artifactId>maven-plugin-plugin</artifactId> |
182 | 195 | <version>${maven-plugin.version}</version> |
183 | 196 | </plugin> |
184 | 197 |
|
| 198 | + <!-- Central Publisher Portal (new Maven Central publishing) --> |
| 199 | + <plugin> |
| 200 | + <groupId>org.sonatype.central</groupId> |
| 201 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 202 | + <version>${central.publishing.plugin.version}</version> |
| 203 | + <extensions>true</extensions> |
| 204 | + <configuration> |
| 205 | + <!-- Must match a <server><id> in ~/.m2/settings.xml --> |
| 206 | + <publishingServerId>central</publishingServerId> |
185 | 207 |
|
| 208 | + <!-- Publish automatically after validation --> |
| 209 | + <autoPublish>true</autoPublish> |
| 210 | + |
| 211 | + <deploymentName>maven-gradle-plugin-${project.version}</deploymentName> |
| 212 | + </configuration> |
| 213 | + </plugin> |
| 214 | + |
| 215 | + <!-- coverage (unchanged) --> |
186 | 216 | <plugin> |
187 | 217 | <groupId>org.jacoco</groupId> |
188 | 218 | <artifactId>jacoco-maven-plugin</artifactId> |
|
202 | 232 | </execution> |
203 | 233 | </executions> |
204 | 234 | </plugin> |
205 | | - |
206 | | - <plugin> |
207 | | - <groupId>org.apache.maven.plugins</groupId> |
208 | | - <artifactId>maven-release-plugin</artifactId> |
209 | | - <version>3.0.0</version> |
210 | | - <configuration> |
211 | | - <useReleaseProfile>false</useReleaseProfile> |
212 | | - <releaseProfiles>release</releaseProfiles> |
213 | | - <goals>deploy</goals> |
214 | | - </configuration> |
215 | | - </plugin> |
216 | | - <plugin> |
217 | | - <groupId>org.sonatype.plugins</groupId> |
218 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
219 | | - <version>1.6.13</version> |
220 | | - <extensions>true</extensions> |
221 | | - <configuration> |
222 | | - <serverId>ossrh</serverId> |
223 | | - <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
224 | | - <autoReleaseAfterClose>true</autoReleaseAfterClose> |
225 | | - </configuration> |
226 | | - </plugin> |
227 | | - |
228 | 235 | </plugins> |
229 | 236 | </build> |
230 | 237 |
|
231 | 238 | <profiles> |
232 | 239 | <profile> |
233 | | - <!--http://www.sonatype.org/nexus/2014/10/08/distribute-project-artifacts-in-maven-central-with-nexus-oss/ --> |
234 | 240 | <id>release</id> |
235 | 241 | <build> |
236 | 242 | <plugins> |
| 243 | + <!-- Attach sources --> |
237 | 244 | <plugin> |
238 | 245 | <groupId>org.apache.maven.plugins</groupId> |
239 | 246 | <artifactId>maven-source-plugin</artifactId> |
240 | | - <version>3.2.0</version> |
| 247 | + <version>${maven.source.plugin.version}</version> |
241 | 248 | <executions> |
242 | 249 | <execution> |
243 | 250 | <id>attach-sources</id> |
|
247 | 254 | </execution> |
248 | 255 | </executions> |
249 | 256 | </plugin> |
| 257 | + |
| 258 | + <!-- Attach javadocs --> |
250 | 259 | <plugin> |
251 | 260 | <groupId>org.apache.maven.plugins</groupId> |
252 | 261 | <artifactId>maven-javadoc-plugin</artifactId> |
253 | | - <version>3.3.0</version> |
| 262 | + <version>${maven.javadoc.plugin.version}</version> |
254 | 263 | <executions> |
255 | 264 | <execution> |
256 | 265 | <id>attach-javadocs</id> |
|
260 | 269 | </execution> |
261 | 270 | </executions> |
262 | 271 | </plugin> |
| 272 | + |
| 273 | + <!-- Sign artifacts --> |
263 | 274 | <plugin> |
264 | 275 | <groupId>org.apache.maven.plugins</groupId> |
265 | 276 | <artifactId>maven-gpg-plugin</artifactId> |
266 | | - <version>3.0.1</version> |
| 277 | + <version>${maven.gpg.plugin.version}</version> |
267 | 278 | <executions> |
268 | 279 | <execution> |
269 | 280 | <id>sign-artifacts</id> |
|
273 | 284 | </goals> |
274 | 285 | </execution> |
275 | 286 | </executions> |
| 287 | + <configuration> |
| 288 | + <gpgArguments> |
| 289 | + <arg>--pinentry-mode</arg> |
| 290 | + <arg>loopback</arg> |
| 291 | + </gpgArguments> |
| 292 | + </configuration> |
| 293 | + </plugin> |
| 294 | + <plugin> |
| 295 | + <groupId>org.apache.maven.plugins</groupId> |
| 296 | + <artifactId>maven-surefire-plugin</artifactId> |
| 297 | + <version>${surefire.version}</version> |
| 298 | + <configuration> |
| 299 | + <useModulePath>false</useModulePath> |
| 300 | + </configuration> |
276 | 301 | </plugin> |
277 | 302 | </plugins> |
278 | 303 | </build> |
279 | 304 | </profile> |
280 | | - </profiles> |
281 | 305 |
|
282 | | - <distributionManagement> |
283 | | - <snapshotRepository> |
284 | | - <id>ossrh</id> |
285 | | - <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
286 | | - </snapshotRepository> |
287 | | - <repository> |
288 | | - <id>ossrh</id> |
289 | | - <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
290 | | - </repository> |
291 | | - </distributionManagement> |
| 306 | + <profile> |
| 307 | + <id>central-snapshots</id> |
| 308 | + <distributionManagement> |
| 309 | + <snapshotRepository> |
| 310 | + <id>central</id> |
| 311 | + <url>https://central.sonatype.com/repository/maven-snapshots/</url> |
| 312 | + </snapshotRepository> |
| 313 | + </distributionManagement> |
| 314 | + </profile> |
| 315 | + </profiles> |
292 | 316 |
|
293 | 317 | </project> |
0 commit comments