We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ee1640 commit ee41003Copy full SHA for ee41003
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