From b1e68e0d92123bf2fdf7f690648220cb1fa72dd8 Mon Sep 17 00:00:00 2001 From: Arun Venmany Date: Thu, 3 Oct 2024 13:47:28 +0530 Subject: [PATCH] Fixing deprecation for AbstractCompile.destinationDir --- .../groovy/io/openliberty/tools/gradle/tasks/DeployTask.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/groovy/io/openliberty/tools/gradle/tasks/DeployTask.groovy b/src/main/groovy/io/openliberty/tools/gradle/tasks/DeployTask.groovy index 866a2b82..92313838 100644 --- a/src/main/groovy/io/openliberty/tools/gradle/tasks/DeployTask.groovy +++ b/src/main/groovy/io/openliberty/tools/gradle/tasks/DeployTask.groovy @@ -297,7 +297,7 @@ class DeployTask extends AbstractServerTask { File outputDir; if(compileJava != null){ - outputDir = compileJava.destinationDir + outputDir = compileJava.getDestinationDirectory().get().getAsFile() } if (outputDir != null && !outputDir.exists() && hasJavaSourceFiles(task.classpath, outputDir)) {