We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5ee1640 + 8e6726a commit c98501dCopy full SHA for c98501d
src/main/java/org/web3j/gradle/plugin/Web3jPlugin.java
@@ -184,6 +184,11 @@ protected File buildOutputDir(final SourceSet sourceSet) {
184
final SoliditySourceSet soliditySourceSet =
185
(SoliditySourceSet) convention.getPlugins().get(SoliditySourceSet.NAME);
186
187
- return soliditySourceSet.getSolidity().getOutputDir();
+ try {
188
+ return soliditySourceSet.getSolidity().getDestinationDirectory().getAsFile().get();
189
+ } catch (NoSuchMethodError ignored) {
190
+ // TODO delete this catch block and unwrap the try block after Gradle 8 migration
191
+ return soliditySourceSet.getSolidity().getOutputDir();
192
+ }
193
}
194
0 commit comments