Private maven servers are complicated or pricey. fetch aims to make them simple and relatively free by storing artifacts on Dropbox. All you need to do is remix this project on glitch.com and do a bit of configuration.
- Remix this project on Glitch.com
- Add your desired password and your Dropbox access token to the
.env
file in Glitch. It'll look a little something like this:
# Environment Config
# store your secrets and config variables in here
# only invited collaborators will be able to see your .env values
# reference these in your code with process.env.SECRET
PASSWORD=some_password_you_like
DROPBOX_ACCESS_TOKEN=some_long_access_token_here
# note: .env is a shell file so there can't be spaces around =
Now, within your Gradle project, you just need to configure a custom maven repo:
maven {
credentials {
username 'admin'
password 'some_password_you_like'
}
url "https://yourproject.glitch.me/maven"
}
We recommend moving the username, password, and url out of the project itself and into a gradle.properties
file in your home .gradle
directory.
Your files are stored in Dropbox, under the folder Apps/the-name-of-your-app/maven
. You can make backups, modify and delete files, and access the whole of your maven server within this folder structure.
Made with glitch.com
\ ゜o゜)ノ
fetch is available under the MIT license. See the LICENSE file for more info.