Skip to content

Commit 787e0dc

Browse files
committed
refactor: use new api instead of deprecated to get build directory
1 parent 8cc834e commit 787e0dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugin/src/main/java/com/icst/plugin/builder/Utilities.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ protected static File extractSdkMetadata(Project project) {
6262
throw new GradleException("Resolved SDK is not an AAR: " + aar);
6363
}
6464

65-
File outDir = new File(project.getBuildDir(), "plugin-sdk-metadata");
65+
File outDir = new File(project.getLayout().getBuildDirectory().getAsFile().get(), "plugin-sdk-metadata");
6666
outDir.mkdirs();
6767

6868
try (ZipFile zip = new ZipFile(aar)) {

0 commit comments

Comments
 (0)