3 ms·
Here's my very rough attempt in Gradle: https://bitbucket.org/twic/ensure https://bitbucket.org/twic/ensure Turned out to be more than 20 lines, but then i di
by twic 10y ago
Here's my very rough attempt in Gradle:
https://bitbucket.org/twic/ensure https://bitbucket.org/twic/ensure
Turned out to be more than 20 lines, but then i did it in Java rather than Groovy.
I do the downloads from the Maven repo (which should be your internal Maven repo!), so there's no need for an upload step. Deployment is done with a shell script with a few undemanding dependencies - unzip, curl, and openssl to verify the digests. I use a TSV file rather than JSON because it's easier for the shell script to read!
My next trick will be to figure out how to get this into a Cloud Foundry buildpack ...
Oh, the name: https://ensure.com/nutrition-products https://ensure.com/nutrition-products