> Task :spotlessJavaCheck FAILED
[Incubating] Problems report is available at: file:///.../web3j/build/reports/problems/problems-report.html
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':spotlessJavaCheck'.
> The following files had format violations:
.agents/skills/web3j/assets/erc20-example/basic-erc20-app/src/main/java/example/Erc20ExampleApp.java
@@ -1,11 +1,25 @@
+/*
+·*·Copyright·2026·Web3·Labs·Ltd.
+·*
+·*·Licensed·under·the·Apache·License,·Version·2.0·(the·"License");·you·may·not·use·this·file·except·in·compliance·with
+·*·the·License.·You·may·obtain·a·copy·of·the·License·at
+·*
+·*·http://www.apache.org/licenses/LICENSE-2.0
+·*
+·*·Unless·required·by·applicable·law·or·agreed·to·in·writing,·software·distributed·under·the·License·is·distributed·on
+·*·an·"AS·IS"·BASIS,·WITHOUT·WARRANTIES·OR·CONDITIONS·OF·ANY·KIND,·either·express·or·implied.·See·the·License·for·the
+·*·specific·language·governing·permissions·and·limitations·under·the·License.
+·*/
package·example;
-import·example.contracts.ExampleToken;
-import·io.reactivex.disposables.Disposable;
import·java.math.BigInteger;
import·java.util.List;
import·java.util.concurrent.CountDownLatch;
import·java.util.concurrent.TimeUnit;
+
+import·example.contracts.ExampleToken;
+import·io.reactivex.disposables.Disposable;
+
import·org.web3j.crypto.Credentials;
import·org.web3j.protocol.Web3j;
import·org.web3j.protocol.core.DefaultBlockParameterName;
@@ -46,7 +60,8 @@
············System.out.println("Token·name:·"·+·token.name().send());
············System.out.println("Token·symbol:·"·+·token.symbol().send());
············System.out.println("Total·supply:·"·+·token.totalSupply().send());
-············System.out.println("Deployer·balance:·"·+·token.balanceOf(credentials.getAddress()).send());
+············System.out.println(
+····················"Deployer·balance:·"·+·token.balanceOf(credentials.getAddress()).send());
············CountDownLatch·eventSeen·=·new·CountDownLatch(1);
············transferSubscription·=
@@ -69,7 +84,8 @@
············TransactionReceipt·receipt·=·token.transfer(recipient,·transferAmount).send();
············System.out.println("Transfer·tx·hash:·"·+·receipt.getTransactionHash());
-············List<ExampleToken.TransferEventResponse>·receiptEvents·=·token.getTransferEvents(receipt);
+············List<ExampleToken.TransferEventResponse>·receiptEvents·=
+····················token.getTransferEvents(receipt);
············if·(!receiptEvents.isEmpty())·{
················ExampleToken.TransferEventResponse·event·=·receiptEvents.get(0);
················System.out.printf(
.agents/skills/web3j/assets/erc20-example/basic-erc20-app/src/test/java/example/Erc20EvmTest.java
@@ -1,11 +1,25 @@
+/*
+·*·Copyright·2026·Web3·Labs·Ltd.
... (46 more lines that didn't fit)
Violations also present in 15 other files.
Run './gradlew :spotlessApply' to fix these violations.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to generate a Build Scan (Powered by Develocity).
> Get more help at https://help.gradle.org.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 10.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/9.0.0/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD FAILED in 3s
14 actionable tasks: 7 executed, 2 from cache, 5 up-to-date
I'm using the Gradle wrapper, in a MacOS Tahoe laptop, if that helps.
Gradle check fails after cloning the repository
After cloning the repo's last version (hash
241aca294a47de5957ebe4002e37da86aa431e21), the command:fails with the message:
I'm using the Gradle wrapper, in a MacOS Tahoe laptop, if that helps.