From 570e830d56ad04e8dbfeffdc78806abb3fa3f373 Mon Sep 17 00:00:00 2001 From: Susan Hert Date: Wed, 15 Nov 2023 06:28:23 -0800 Subject: [PATCH] Replace deprecated buildDir with layout.buildDirectory (#165) --- standalone/noPlugins_build.gradle | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/standalone/noPlugins_build.gradle b/standalone/noPlugins_build.gradle index 224978a..13c8482 100644 --- a/standalone/noPlugins_build.gradle +++ b/standalone/noPlugins_build.gradle @@ -32,7 +32,7 @@ project.version="0.0.1-SNAPSHOT" ext { // The following are convenience variables for the various output directories used below - explodedModuleDir = "${project.buildDir}/explodedModule" + explodedModuleDir = project.layout.buildDirectory.file("explodedModule").get().asFile.path libDir = "${explodedModuleDir}/lib" configDir = "${explodedModuleDir}/config" } @@ -103,14 +103,14 @@ project.tasks.register("apiJar", Jar) { jar.description = "produce jar file for api" jar.from project.sourceSets.api.output jar.archiveBaseName.set("${project.name}_api") - jar.destinationDirectory = project.file(libDir) + jar.destinationDirectory.set(project.file(libDir)) jar.dependsOn(project.apiClasses) } project.jar { Jar jar -> jar.archiveBaseName.set(project.name) - jar.destinationDirectory = project.file(libDir) + jar.destinationDirectory.set(project.file(libDir)) jar.dependsOn(project.tasks.apiJar) } @@ -171,7 +171,7 @@ project.tasks.register("module", Jar) { jar.from explodedModuleDir jar.archiveBaseName.set(project.name) jar.archiveExtension.set('module') - jar.destinationDirectory = project.buildDir + jar.destinationDirectory.set(project.layout.buildDirectory) jar.dependsOn(project.tasks.moduleXml) jar.dependsOn(project.tasks.processModuleResources) jar.dependsOn(project.tasks.copyExternalLibs)