Reputation:
I have a Spring Boot 2.x
project that uses Gradle 7.x
.
I'm assembling a distribution of the artifact/service in a zip
/ tar
file using the built-in Spring Boot task(s) provided. There is no meta-data associated with this asset, nor any need to add anything else to it.
I would like to copy (or publish) this zip
/ tar
file into Artifactory (using Gradle), but so far everything I see around that subject includes (1) the file itself (usually a jar
), (2) module meta-data and (3) the POM
file.
Is there a way to accomplish what I'm looking for?
Upvotes: 1
Views: 388
Reputation: 6083
Not exactly answers your question, but an easier approach would be to upload to Artifactory using the JFrog CLI:
$ curl -fL https://getcli.jfrog.io
$ ./jfrog rt upload \
--url="https://domain.tld" \
--user="some_user" \
--password="the_password" \
file_to_upload.zip path/within/artifactory/to/place/the/file/
For more information see Uploading Files.
Upvotes: 0