Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

vipera-npm-registry / de-splashscreen-plugin   js

Repository URL to install this package:

Version: 0.0.4 

/ src / android / DESplashPlugin.gradle

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'){}
}