Advertisement
Guest User

Untitled

a guest
May 19th, 2016
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.29 KB | None | 0 0
  1. HTTP/1.1 400 Bad Request [messages:[Invalid POM: /pro/johnfoley/androidTesting/testlibrary/1.0.5/testlibrary-1.0.5.pom: Project name missing, Project description missing, Project URL missing, License information missing, SCM URL missing, Developer information missing, Dropping existing partial staging repository.], status:Validation Failed]
  2. 11:45:57 AM: External task execution finished 'bintrayUpload'.
  3.  
  4. apply plugin: 'com.android.library'
  5. apply plugin: 'com.jfrog.bintray'
  6. apply plugin: 'com.github.dcendents.android-maven'
  7.  
  8. description = 'A test library'
  9. group = 'pro.johnfoley.androidTesting'
  10. version = '1.0.5'
  11.  
  12. buildscript {
  13. repositories {
  14. jcenter()
  15. mavenCentral()
  16. }
  17. apply plugin: 'maven'
  18. apply plugin: 'maven-publish'
  19. }
  20.  
  21.  
  22. android {
  23. compileSdkVersion 23
  24. buildToolsVersion "23.0.3"
  25.  
  26. defaultConfig {
  27. minSdkVersion 18
  28. targetSdkVersion 23
  29. versionCode 1
  30. versionName "1.0"
  31. }
  32. buildTypes {
  33. release {
  34. minifyEnabled false
  35. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  36. }
  37. }
  38. }
  39.  
  40. dependencies {
  41. compile fileTree(dir: 'libs', include: ['*.jar'])
  42. testCompile 'junit:junit:4.12'
  43. compile 'com.android.support:appcompat-v7:23.4.0'
  44. }
  45.  
  46. // Generate source JAR
  47. task generateSourcesJar(type: Jar) {
  48. from android.sourceSets.main.java.srcDirs
  49. classifier 'sources'
  50. }
  51.  
  52. // Generate JavaDocs and JavaDocs JAR
  53. task generateJavadocs(type: Javadoc) {
  54. source = android.sourceSets.main.java.srcDirs
  55. classpath += project.files(android.getBootClasspath()
  56. .join(File.pathSeparator))
  57. }
  58. task generateJavadocsJar(type: Jar) {
  59. from generateJavadocs.destinationDir
  60. classifier 'javadoc'
  61. }
  62. generateJavadocsJar.dependsOn generateJavadocs
  63.  
  64. artifacts
  65. {
  66. archives generateSourcesJar
  67. archives generateJavadocsJar
  68. }
  69.  
  70. def bintrayUser = 'BT_USER'
  71. def bintrayApiKey = 'BT_KEY'
  72. def bintrayGPGPassword = 'BT_PW'
  73. def mavenCentralToken = 'MC_TOKEN'
  74. def mavenCentralPassword = 'MC_PW'
  75.  
  76. // BinTray config
  77. bintray
  78. {
  79. user = bintrayUser
  80. key = bintrayApiKey
  81.  
  82. pkg
  83. {
  84. repo = 'maven'
  85. name = 'pro.johnfoley.androidTesting.testlibrary'
  86. desc = ''
  87. licenses = ['Apache-2.0']
  88. vcsUrl = 'https://github.com/johnlfoleyiii/androidTesting.git'
  89. issueTrackerUrl = 'https://github.com/johnlfoleyiii/androidTesting/issues'
  90. websiteUrl = 'https://github.com/johnlfoleyiii/androidTesting'
  91. labels = []
  92. publicDownloadNumbers = true
  93.  
  94. version {
  95. name = '1.0.5-testlibrary'
  96. desc = 'My test library'
  97. released = new Date()
  98. vcsTag = 'v1.0'
  99. gpg {
  100. sign = true
  101. passphrase = bintrayGPGPassword
  102. }
  103. mavenCentralSync {
  104. sync = true //Optional (true by default). Determines whether to sync the version to Maven Central.
  105. user = mavenCentralToken
  106. password = mavenCentralPassword
  107. close = '1' //Optional property. By default the staging repository is closed and artifacts are released to Maven Central. You can optionally turn this behaviour off (by puting 0 as value) and release the version manually.
  108. }
  109. }
  110. }
  111.  
  112. configurations = ['archives']
  113. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement