Skip to content

Commit

Permalink
Merge pull request #83 from shemnon/gradle8-support
Browse files Browse the repository at this point in the history
Use Gradle 8 compatible API
  • Loading branch information
NickSneo authored Apr 10, 2024
2 parents 5ee1640 + 8e6726a commit c98501d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/org/web3j/gradle/plugin/Web3jPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,11 @@ protected File buildOutputDir(final SourceSet sourceSet) {
final SoliditySourceSet soliditySourceSet =
(SoliditySourceSet) convention.getPlugins().get(SoliditySourceSet.NAME);

return soliditySourceSet.getSolidity().getOutputDir();
try {
return soliditySourceSet.getSolidity().getDestinationDirectory().getAsFile().get();
} catch (NoSuchMethodError ignored) {
// TODO delete this catch block and unwrap the try block after Gradle 8 migration
return soliditySourceSet.getSolidity().getOutputDir();
}
}
}

0 comments on commit c98501d

Please sign in to comment.