Build Error
We are using web3j since quite some time now, but since today somewhat around noon, the build fails because your internal service that holds the solidity versions is down. How long do you expect that this will last?
Facing the same issue.
Same issue here.
Issue is with download of release.json in ~/.web3j/solc/ which is failing.
If you are using maven for build then below is a workaround.
We had a copy of that file on a developer's machine so we added it to our source code repo and update maven pom with below code to copy to above location. This has unblocked our CI build pipelines and other developers who did not have release.json file. NOTE copy the plugin before web3j-maven-plugin and release.json file should be same location as pom.xml
<plugin> <artifactId>maven-resources-plugin</artifactId> <version>3.0.2</version> <executions> <execution> <id>copy-resource-one</id> <phase>generate-sources</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> <outputDirectory>${user.home}/.web3j/solc/</outputDirectory> <resources> <resource> <directory>${project.basedir}</directory> <includes> <include>releases.json</include> </includes> </resource> </resources> </configuration> </execution> </executions> </plugin>
Issue is with download of release.json in ~/.web3j/solc/ which is failing.
If you are using maven for build then below is a workaround.
We had a copy of that file on a developer's machine so we added it to our source code repo and update maven pom with below code to copy to above location. This has unblocked our CI build pipelines and other developers who did not have release.json file. NOTE copy the plugin before web3j-maven-plugin and release.json file should be same location as pom.xml
<plugin> <artifactId>maven-resources-plugin</artifactId> <version>3.0.2</version> <executions> <execution> <id>copy-resource-one</id> <phase>generate-sources</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> <outputDirectory>${user.home}/.web3j/solc/</outputDirectory> <resources> <resource> <directory>${project.basedir}</directory> <includes> <include>releases.json</include> </includes> </resource> </resources> </configuration> </execution> </executions> </plugin>
Works perfekt! If someone is missing the releases.json, i uploaded my version to pastebin https://pastebin.com/50QCdUNQ