Repository URL to install this package:
def PDRONE_MAVEN_URL = "https://pdrone.vipera.com//maven/af2ce13b-360b-47a2-b2c5-05b6d2e6db1c"
def PDRONDE_SERVER_ID = "pdrone.af2ce13b-360b-47a2-b2c5-05b6d2e6db1c"
buildscript {
repositories {
jcenter()
mavenLocal()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
}
}
def getMavenSettingsCredentials = {
String userHome = System.getProperty( "user.home" );
File mavenSettings = new File(userHome, ".m2/settings.xml")
def xmlSlurper = new XmlSlurper()
def output = xmlSlurper.parse(mavenSettings)
return output."servers"."server"
}
def getCredentials = {
def entries = getMavenSettingsCredentials()
for (entry in entries) {
if ( entry."id".text() == PDRONDE_SERVER_ID ) {
return [username: entry.username.text(), password: entry.password.text()]
}
}
}
allprojects {
repositories {
jcenter()
mavenCentral()
maven {
def cred= getCredentials()
credentials {
username cred['username']
password cred['password']
}
url(PDRONE_MAVEN_URL)
}
}
}
dependencies {
compile ('com.vipera.de:deutility:0.1.0'){}
}