hyperledger-web3j / web3j-solidity-gradle-plugin

Gradle plugin providing tasks to compile Solidity contracts.
Apache License 2.0
21 stars 25 forks source link

Error: No compatible solc release could be found with solidity 0.8.x on Windows #49

Closed b-gyula closed 2 years ago

b-gyula commented 2 years ago

Environment

java: openJDK 11 web3j-gradle-plugin: 4.8.8 os: Windows 11

Description

When trying to compile solidity 0.8.x pragma solidity ^0.8.0;

Error

java.lang.Exception: No compatible solc release could be found for the file: ...

Caused

~\.web3j\solc\releases.json does not contain the windows_url for solc 0.8.x versions Probably because solc for windows is released as a single .exe instead of a .zip file

Workaround

As a workaround until it's fixed the solc-windows.exe can be downloaded manually from the solidity/releases page and the executable can be defined

solidity {
    executable = '</path/to>/solc-windows.exe'
    version = '<solc version>'  // like '0.8.11'
}
stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

b-gyula commented 2 years ago

So that's a solution: just closed without even any analysis or discussion. Is this project abadoned?