SHARE
TWEET

Untitled

a guest Aug 11th, 2016 97 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'maven'
  3. apply plugin: 'signing'
  4.  
  5. android {
  6.     compileSdkVersion Integer.parseInt(project.TARGET_SDK_VERSION)
  7.     buildToolsVersion "22.0.1"
  8.  
  9.     defaultConfig {
  10.         minSdkVersion MIN_SDK_VERSION
  11.         targetSdkVersion project.TARGET_SDK_VERSION
  12.         versionCode Integer.parseInt(project.VERSION_CODE)
  13.         versionName project.VERSION_NAME
  14.     }
  15.     buildTypes {
  16.         release {
  17.             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  18.             minifyEnabled false
  19.         }
  20.     }
  21. }
  22.  
  23. dependencies {
  24.     compile fileTree(dir: 'libs', include: ['*.jar'])
  25. }
  26.  
  27.  
  28.  
  29.  
  30. signing {
  31.     required { has("release") && gradle.taskGraph.hasTask("uploadArchives") }
  32.     sign configurations.archives
  33. }
  34.  
  35.  
  36. uploadArchives {
  37.     configuration = configurations.archives
  38.  
  39.     repositories.mavenDeployer {
  40.  
  41.         beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
  42.  
  43.         repository(url: sonatypeRepo) {
  44.             authentication(userName: sonatypeUsername, password: sonatypePassword )
  45.         }
  46.  
  47.         snapshotRepository(url: snapshotRepo) {
  48.             authentication(userName: sonatypeUsername, password: sonatypePassword)
  49.         }
  50.  
  51.         pom.project {
  52.             name POM_NAME
  53.             description POM_DESC
  54.             packaging 'aar'
  55.             url POM_URL
  56.  
  57.             scm {
  58.                 url POM_SCM_URL
  59.                 connection POM_SCM_CONN
  60.                 developerConnection POM_SCM_DEV_CONN
  61.             }
  62.  
  63.             licenses {
  64.                 license {
  65.                     name LICENCE_NAME
  66.                     url LICENCE_URL
  67.                     distribution 'repo'
  68.                 }
  69.             }
  70.  
  71.             developers {
  72.                 developer {
  73.                     id POM_DEV
  74.                     name POM_DEV_NAME
  75.                 }
  76.             }
  77.         }
  78.     }
  79. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top