Hello, How can i deploy a zip artifact from withi...
# community-support
c
Hello, How can i deploy a zip artifact from within my custom task. For example, i used
FileOperations
class to create the zip archive using the
zipTree
. Can someone please refer or attach a sample on how can i continue the workflow to deploy it on a maven repo
v
I don't think you can do a "publish this file now to maven repository X" from within a custom task. At least not with Gradle built-in stuff.
n
is it important that it happens inside the same task?
v
At least that was the question. 😄
n
I interpreted the "continue the workflow" as separate task, but the first sentence indeed suggests otherwise 🙂
v
As this is also not really "deploy" but "publish", I guess the wording might be slightly off of what we usually might interpret. 🙂
☝️ 1
c
Indeed, i mean publish from within the gradle task (deploy from maven terms)
You suggest i configure a publication in the gradle.build file instead?
👍 1
v
Gradle is not like Ant where you define what to do in which steps. Gradle is more like you model your project and Gradle does what needs to be done.
👍 1