Skip to content

Commit c8914a5

Browse files
committed
GH-15772 fix copyMainDist task for h2o-py
1 parent 90723b9 commit c8914a5

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

h2o-py/build.gradle

+10-4
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,17 @@ task buildDist(type: Exec, dependsOn: [verifyDependencies, createVersionFiles, c
9999
commandLine getOsSpecificCommandLine([pythonexe, "setup.py", "bdist_wheel"])
100100
}
101101

102-
task copyMainDist(type: Copy, dependsOn: [buildDist]) {
103-
from ("${buildDir}/main/") {
104-
include "dist/**"
102+
// 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)
103+
// I was able to properly copy the wheel only this way.
104+
task copyMainDist(dependsOn: [buildDist]) {
105+
doLast{
106+
copy {
107+
from("${buildDir}/main/") {
108+
include "dist/**"
109+
}
110+
into "${buildDir}"
111+
}
105112
}
106-
into "${buildDir}"
107113
}
108114

109115
task buildClientDist(type: Exec, dependsOn: [verifyDependencies, createVersionFiles, copyClientSrcFiles]) {

0 commit comments

Comments
 (0)