From 034506b00707eeac1ca174022208564fcb076b0b Mon Sep 17 00:00:00 2001 From: Adam Valenta Date: Wed, 10 Apr 2024 17:45:31 +0200 Subject: [PATCH] GH-15772 fix copyMainDist task for h2o-py --- h2o-py/build.gradle | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/h2o-py/build.gradle b/h2o-py/build.gradle index 094fce0ace76..03240602edfa 100644 --- a/h2o-py/build.gradle +++ b/h2o-py/build.gradle @@ -99,11 +99,17 @@ task buildDist(type: Exec, dependsOn: [verifyDependencies, createVersionFiles, c commandLine getOsSpecificCommandLine([pythonexe, "setup.py", "bdist_wheel"]) } -task copyMainDist(type: Copy, dependsOn: [buildDist]) { - from ("${buildDir}/main/") { - include "dist/**" +// I don't know why the task with type: Copy doesn't run after buildDist for gradle 8 even though its working for other projects (e.g. h2o-py-cloud-extension) +// I was able to properly copy the wheel only this way. +task copyMainDist(dependsOn: [buildDist]) { + doLast{ + copy { + from("${buildDir}/main/") { + include "dist/**" + } + into "${buildDir}" + } } - into "${buildDir}" } task buildClientDist(type: Exec, dependsOn: [verifyDependencies, createVersionFiles, copyClientSrcFiles]) {