Advertisement
yapiti

Untitled

Jan 31st, 2018
336
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.88 KB | None | 0 0
  1.  
  2. apply plugin: 'com.android.library'
  3.  
  4.  
  5. android {
  6.     compileSdkVersion 22
  7.     buildToolsVersion "22.0.1"
  8.  
  9.     defaultConfig {
  10.         minSdkVersion 14
  11.         targetSdkVersion 22
  12.         versionCode 1
  13.         versionName "1.0"
  14.     }
  15.  
  16.     compileOptions {
  17.         sourceCompatibility JavaVersion.VERSION_1_7
  18.         targetCompatibility JavaVersion.VERSION_1_7
  19.     }
  20.  
  21.     buildTypes {
  22.         release {
  23.             debuggable true
  24.             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
  25.         }
  26.     }
  27.  
  28.     lintOptions {
  29.         abortOnError true
  30.     }
  31. }
  32.  
  33. dependencies {
  34.     compile 'com.android.support:appcompat-v7:22.1.1'
  35.     compile 'com.android.support:support-v13:22.1.1'
  36.  
  37.     compile fileTree(dir: 'libs', include: ['*.jar'])
  38. }
  39.  
  40. apply plugin: 'maven'
  41.  
  42. uploadArchives {
  43.     repositories.mavenDeployer {
  44.         configuration = configurations.archives
  45.  
  46.         repository(url: "http://nexus.wicowyn.fr/content/repositories/android-library/") {
  47.             authentication(userName: 'android-library', password: 'my_password')
  48.         }
  49.  
  50.         pom.version = "0.0.10"
  51.         pom.artifactId = "library"
  52.         pom.groupId = "wicowyn.android"
  53.  
  54.         pom.project {
  55.             name 'Android library'
  56.             packaging 'aar'
  57.             description 'It\'s just a grouping of useful things'
  58.             //url 'http://github.com/andresteingress/gcontracts'
  59.             inceptionYear '2014'
  60.  
  61.             developers {
  62.                 developer {
  63.                     id 'wicowyn'
  64.                     name 'Nicolas Barranger'
  65.                     email 'wicowyn@gmail.com'
  66.                     url 'https://plus.google.com/+NicolasBarranger'
  67.                     roles {
  68.                         role 'Developer'
  69.                     }
  70.                     timezone '+1'
  71.                 }
  72.             }
  73.         }
  74.     }
  75. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement