Skip to content

Instantly share code, notes, and snippets.

@Ekt0s
Created November 27, 2015 15:33
Show Gist options
  • Save Ekt0s/2306f505b04f4203c4da to your computer and use it in GitHub Desktop.
Save Ekt0s/2306f505b04f4203c4da to your computer and use it in GitHub Desktop.
This shows how to use a remote gradle script stored on Gitlab
apply from: "http://gitlab.domain.com/GITLAB_GROUP/YOUR_PROJECT/raw/YOUR_BRANCH/YOUR_FILE_PATH?private_token=${GITLAB_PV_TOKEN}"
e.g: apply from: "http://gitlab.domain.com/android/henry_pottier/raw/develop/build.nexus.gradle?private_token=${GITLAB_PV_TOKEN}"
// The GITLAB_PV_TOKEN property MUST BE set on your global gradle property file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment