Skip to content

Commit

Permalink
Replace deprecated buildDir with layout.buildDirectory (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-susanh authored Nov 15, 2023
1 parent d7c71db commit 570e830
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions standalone/noPlugins_build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down Expand Up @@ -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)
}

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 570e830

Please sign in to comment.