diff --git a/buildSrc/src/main/groovy/local-s3.publish.gradle b/buildSrc/src/main/groovy/local-s3.publish.gradle index f67f2d8..1f8f40a 100644 --- a/buildSrc/src/main/groovy/local-s3.publish.gradle +++ b/buildSrc/src/main/groovy/local-s3.publish.gradle @@ -79,7 +79,7 @@ publishing { task delombok(type: DelombokTask, dependsOn: compileJava) { - ext.outputDir = file("${layout.buildDirectory}/delombok") + ext.outputDir = file("${project.layout.buildDirectory}/delombok") outputs.dir(outputDir) sourceSets.main.java.srcDirs.each { inputs.dir(it) diff --git a/local-s3-docker/build.gradle b/local-s3-docker/build.gradle index 22620aa..cd0d732 100644 --- a/local-s3-docker/build.gradle +++ b/local-s3-docker/build.gradle @@ -32,11 +32,11 @@ tasks.register('collectReachabilityMetadata', JavaExec) { outputs.cacheIf { true } - inputs.file("${layout.buildDirectory}/libs/s3.jar") + inputs.file("${project.layout.buildDirectory}/libs/s3.jar") .withPropertyName("jar") .withPathSensitivity(PathSensitivity.RELATIVE) - outputs.dir(file("${layout.buildDirectory}/reachability-metadata")) + outputs.dir(file("${project.layout.buildDirectory}/reachability-metadata")) .withPropertyName("reachability-metadata") mainClass.set('com.robothy.s3.docker.ReachabilityMetadataGenerator') @@ -48,13 +48,13 @@ tasks.register('buildGraalVMNativeImage', Exec) { dependsOn('collectReachabilityMetadata') outputs.cacheIf { true } - inputs.dir(file("${layout.buildDirectory}/reachability-metadata")) + inputs.dir(file("${project.layout.buildDirectory}/reachability-metadata")) .withPropertyName("reachability-metadata") .withPathSensitivity(PathSensitivity.RELATIVE) - inputs.file("${layout.buildDirectory}/libs/s3.jar") + inputs.file("${project.layout.buildDirectory}/libs/s3.jar") .withPropertyName("jar") .withPathSensitivity(PathSensitivity.RELATIVE) - outputs.file("${layout.buildDirectory}/bin/s3") + outputs.file("${project.layout.buildDirectory}/bin/s3") .withPropertyName("s3-native-image") doFirst { @@ -79,7 +79,7 @@ tasks.register('buildGraalVMNativeBasedDockerImage', Exec) { outputs.cacheIf { true } - inputs.file("${layout.buildDirectory}/bin/s3") + inputs.file("${project.layout.buildDirectory}/bin/s3") .withPropertyName("s3-native-image") .withPathSensitivity(PathSensitivity.RELATIVE)