Skip to content

Commit 3efbe11

Browse files
authored
Release/5.0.2 (#145)
* repo change Signed-off-by: gtebrean <99179176+gtebrean@users.noreply.github.com> * remove Signed-off-by: gtebrean <99179176+gtebrean@users.noreply.github.com> * chg Signed-off-by: gtebrean <99179176+gtebrean@users.noreply.github.com> --------- Signed-off-by: gtebrean <99179176+gtebrean@users.noreply.github.com>
1 parent 99072ce commit 3efbe11

2 files changed

Lines changed: 137 additions & 100 deletions

File tree

CHANGELOG.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,21 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [5.0.3]()(Upcoming)
67

7-
# [5.0.2]()(Upcoming)
8+
### Bug Fixes
9+
10+
*
11+
12+
### Features
13+
14+
*
15+
16+
### BREAKING CHANGES
17+
18+
*
19+
20+
# [5.0.2](https://github.com/LFDT-web3j/web3j-maven-plugin/releases/tag/v5.0.2)(2026-01-31)
821

922
### Bug Fixes
1023

@@ -18,7 +31,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
1831

1932
### BREAKING CHANGES
2033

21-
*
34+
* change release repo and update to 5.0.2 [#145](https://github.com/LFDT-web3j/web3j-maven-plugin/pull/145)
2235

2336
# [4.14.0](https://github.com/LFDT-web3j/web3j-maven-plugin/releases/tag/v4.14.0)(2025-04-10)
2437

pom.xml

Lines changed: 122 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,39 @@
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">
24
<modelVersion>4.0.0</modelVersion>
5+
36
<groupId>org.web3j</groupId>
47
<artifactId>web3j-maven-plugin</artifactId>
8+
<version>5.0.2</version>
59
<packaging>maven-plugin</packaging>
6-
<version>4.14.1-SNAPSHOT</version>
710

811
<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.
1114
</description>
1215
<url>https://web3j.io</url>
1316

1417
<properties>
1518
<maven.compiler.source>21</maven.compiler.source>
1619
<maven.compiler.target>21</maven.compiler.target>
20+
21+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
22+
1723
<maven.version>3.9.9</maven.version>
1824
<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>
2137
</properties>
2238

2339
<licenses>
@@ -41,48 +57,23 @@
4157
<connection>scm:git:git://ssh@github.com/LFDT-web3j/${project.artifactId}.git</connection>
4258
<developerConnection>scm:git:ssh://git@github.com/LFDT-web3j/${project.artifactId}.git</developerConnection>
4359
<url>https://github.com/LFDT-web3j/${project.artifactId}.git</url>
44-
<tag>web3j-maven-plugin-4.14.0</tag>
60+
<tag>HEAD</tag>
4561
</scm>
4662

63+
<!-- Repositories are not required for publishing to Central.
64+
Keep ONLY if you truly need them to resolve deps at build time. -->
4765
<repositories>
4866
<repository>
4967
<id>central</id>
5068
<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>
7971
</repository>
8072
<repository>
8173
<id>consensys</id>
8274
<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>
8677
</repository>
8778
</repositories>
8879

@@ -93,6 +84,18 @@
9384
</pluginRepository>
9485
</pluginRepositories>
9586

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+
9699
<dependencies>
97100
<dependency>
98101
<groupId>org.apache.maven</groupId>
@@ -115,6 +118,7 @@
115118
<artifactId>file-management</artifactId>
116119
<version>3.0.0</version>
117120
</dependency>
121+
118122
<dependency>
119123
<groupId>org.web3j</groupId>
120124
<artifactId>codegen</artifactId>
@@ -126,6 +130,36 @@
126130
<version>${web3j.version}</version>
127131
</dependency>
128132

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+
129163
<dependency>
130164
<groupId>junit</groupId>
131165
<artifactId>junit</artifactId>
@@ -135,7 +169,6 @@
135169
<dependency>
136170
<groupId>org.junit.vintage</groupId>
137171
<artifactId>junit-vintage-engine</artifactId>
138-
<version>5.11.4</version>
139172
<scope>test</scope>
140173
</dependency>
141174

@@ -151,38 +184,35 @@
151184
<version>${maven.version}</version>
152185
<scope>test</scope>
153186
</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>
175187
</dependencies>
176188

177189
<build>
178190
<plugins>
191+
<!-- Generates the plugin descriptor (META-INF/maven/plugin.xml) -->
179192
<plugin>
180193
<groupId>org.apache.maven.plugins</groupId>
181194
<artifactId>maven-plugin-plugin</artifactId>
182195
<version>${maven-plugin.version}</version>
183196
</plugin>
184197

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>
185207

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) -->
186216
<plugin>
187217
<groupId>org.jacoco</groupId>
188218
<artifactId>jacoco-maven-plugin</artifactId>
@@ -202,42 +232,19 @@
202232
</execution>
203233
</executions>
204234
</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-
228235
</plugins>
229236
</build>
230237

231238
<profiles>
232239
<profile>
233-
<!--http://www.sonatype.org/nexus/2014/10/08/distribute-project-artifacts-in-maven-central-with-nexus-oss/ -->
234240
<id>release</id>
235241
<build>
236242
<plugins>
243+
<!-- Attach sources -->
237244
<plugin>
238245
<groupId>org.apache.maven.plugins</groupId>
239246
<artifactId>maven-source-plugin</artifactId>
240-
<version>3.2.0</version>
247+
<version>${maven.source.plugin.version}</version>
241248
<executions>
242249
<execution>
243250
<id>attach-sources</id>
@@ -247,10 +254,12 @@
247254
</execution>
248255
</executions>
249256
</plugin>
257+
258+
<!-- Attach javadocs -->
250259
<plugin>
251260
<groupId>org.apache.maven.plugins</groupId>
252261
<artifactId>maven-javadoc-plugin</artifactId>
253-
<version>3.3.0</version>
262+
<version>${maven.javadoc.plugin.version}</version>
254263
<executions>
255264
<execution>
256265
<id>attach-javadocs</id>
@@ -260,10 +269,12 @@
260269
</execution>
261270
</executions>
262271
</plugin>
272+
273+
<!-- Sign artifacts -->
263274
<plugin>
264275
<groupId>org.apache.maven.plugins</groupId>
265276
<artifactId>maven-gpg-plugin</artifactId>
266-
<version>3.0.1</version>
277+
<version>${maven.gpg.plugin.version}</version>
267278
<executions>
268279
<execution>
269280
<id>sign-artifacts</id>
@@ -273,21 +284,34 @@
273284
</goals>
274285
</execution>
275286
</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>
276301
</plugin>
277302
</plugins>
278303
</build>
279304
</profile>
280-
</profiles>
281305

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>
292316

293317
</project>

0 commit comments

Comments
 (0)