Advertisement
Guest User

Untitled

a guest
Jan 26th, 2017
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.03 KB | None | 0 0
  1. buildscript {
  2. repositories {
  3. jcenter()
  4. }
  5. dependencies {
  6. classpath 'com.android.tools.build:gradle:2.2.3'
  7.  
  8. // NOTE: Do not place your application dependencies here; they belong
  9. // in the individual module build.gradle files
  10. classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4.0.1"
  11. classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
  12. }
  13. }
  14.  
  15. allprojects {
  16. repositories {
  17. jcenter()
  18. }
  19. }
  20.  
  21. task clean(type: Delete) {
  22. delete rootProject.buildDir
  23. }
  24.  
  25. apply plugin: 'com.android.library'
  26. apply plugin: 'com.jfrog.artifactory'
  27. apply plugin: 'maven-publish'
  28. apply plugin: 'me.tatarka.retrolambda'
  29.  
  30. def libraryGroupId = 'com.pixilapps.pixilframework'
  31. def libraryArtifactId = 'mvp'
  32. def libraryVersion = '1.0.0'
  33.  
  34. publishing {
  35. publications {
  36. aar(MavenPublication) {
  37. groupId libraryGroupId
  38. version libraryVersion
  39. artifactId libraryArtifactId
  40. artifact("$buildDir/outputs/aar/${artifactId}-release.aar")
  41. }
  42. }
  43. }
  44.  
  45. artifactory {
  46. contextUrl = 'http://my.lib.web/artifactory'
  47. publish {
  48. repository {
  49. repoKey = 'libs-release-local'
  50.  
  51. username = artifactory_username
  52. password = artifactory_password
  53. }
  54. defaults {
  55. publications('aar')
  56. publishArtifacts = true
  57.  
  58. properties = ['qa.level': 'basic', 'q.os': 'android', 'dev.team': 'core']
  59. publishPom = true
  60. }
  61. }
  62. }
  63.  
  64. buildscript {
  65. repositories {
  66. mavenCentral()
  67. jcenter()
  68. }
  69.  
  70. dependencies {
  71. classpath 'me.tatarka:gradle-retrolambda:3.3.1'
  72. }
  73. }
  74.  
  75. repositories {
  76. mavenCentral()
  77. jcenter()
  78. maven { url "https://clojars.org/repo/" }
  79. maven { url "https://jitpack.io" }
  80. maven {
  81. url "https://s3.amazonaws.com/repo.commonsware.com"
  82. }
  83. maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
  84. maven {
  85. url "http://dl.bintray.com/glomadrian/maven"
  86. }
  87. }
  88.  
  89. android {
  90. compileSdkVersion 25
  91. buildToolsVersion "25.0.0"
  92.  
  93. defaultConfig {
  94. minSdkVersion 17
  95. targetSdkVersion 25
  96. versionCode 1
  97. versionName "1.0"
  98.  
  99. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  100.  
  101. }
  102. buildTypes {
  103. release {
  104. minifyEnabled false
  105. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  106. }
  107. }
  108. compileOptions {
  109. sourceCompatibility JavaVersion.VERSION_1_8.toString()
  110. targetCompatibility JavaVersion.VERSION_1_8.toString()
  111. }
  112. }
  113.  
  114. dependencies {
  115. final PLAY_SERVICES_VERSION = '9.6.1'
  116. final DEXMAKER_VERSION = '1.4'
  117. final HAMCREST_VERSION = '1.3'
  118. final ESPRESSO_VERSION = '2.2.1'
  119. final RUNNER_VERSION = '0.4'
  120. final AUTO_VALUE_VERSION = '1.3'
  121. final AUTO_VALUE_GSON_VERSION = '0.4.2'
  122. final SUPPORT_LIBRARY_VERSION = '25.1.0'
  123. final RETROFIT_VERSION = '2.1.0'
  124. final BUTTERKNIFE_VERSION = '7.0.1'
  125. compile fileTree(dir: 'libs', include: ['*.jar'])
  126. compile "com.android.support:appcompat-v7:$SUPPORT_LIBRARY_VERSION"
  127. compile "com.android.support:recyclerview-v7:$SUPPORT_LIBRARY_VERSION"
  128. compile "com.android.support:cardview-v7:$SUPPORT_LIBRARY_VERSION"
  129. compile "com.android.support:support-annotations:$SUPPORT_LIBRARY_VERSION"
  130. compile "com.squareup.retrofit2:retrofit:$RETROFIT_VERSION"
  131. compile "com.squareup.retrofit2:converter-gson:$RETROFIT_VERSION"
  132. compile "com.squareup.retrofit2:adapter-rxjava:$RETROFIT_VERSION"
  133. compile 'com.github.bumptech.glide:glide:3.7.0'
  134. compile 'io.reactivex:rxandroid:1.2.1'
  135. compile 'io.reactivex:rxjava:1.1.6'
  136. compile 'com.jakewharton.timber:timber:4.1.2'
  137. compile 'com.squareup.okhttp3:logging-interceptor:3.4.1'
  138. compile 'com.squareup.okhttp3:okhttp:3.4.1'
  139. compile 'com.vistrav:ask:2.4'
  140. compile "com.jakewharton:butterknife:$BUTTERKNIFE_VERSION"
  141. compile 'com.michaelpardo:activeandroid:3.1.0-SNAPSHOT'
  142. compile 'net.danlew:android.joda:2.9.3.1'
  143. compile 'com.pixplicity.easyprefs:library:1.7'
  144. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement