build.gradle 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. apply plugin: 'groovy'
  2. apply plugin: 'maven'
  3. repositories {
  4. mavenCentral()
  5. }
  6. dependencies {
  7. compile gradleApi()
  8. compile localGroovy()
  9. compile 'org.ow2.asm:asm:5.2'
  10. compile 'com.android.tools.build:gradle:2.3.0'
  11. }
  12. group = "com.android.wkzf.plugin"
  13. version = '0.0.6'
  14. uploadArchives {
  15. repositories {
  16. mavenDeployer {
  17. repository(url: uri('../repo')){
  18. pom.artifactId = "gradle-plugin"
  19. }
  20. }
  21. }
  22. }
  23. //uploadArchives {
  24. // /**
  25. // * 请在根目录中添加local.properties文件,如果存在该文件,在该文件最后追加如下内容(包括用户名、密码、仓库地址)
  26. // * userName=admin
  27. // * password=*****
  28. // * url=http://10.0.18.175/nexus/content/repositories/android/
  29. // */
  30. // def url = "http://10.0.18.175/nexus/content/repositories/android/"
  31. // def userName = "admin"
  32. // def password = ""
  33. // File file = project.rootProject.file("local.properties")
  34. // if (file.exists()) {
  35. // Properties properties = new Properties()
  36. // properties.load(file.newDataInputStream())
  37. // url = properties.getProperty("url")
  38. // userName = properties.getProperty("userName")
  39. // password = properties.getProperty("password")
  40. // }
  41. //
  42. // repositories.mavenDeployer {
  43. // repository(url: url) {
  44. // authentication(userName: userName, password: password)
  45. // pom.artifactId = "gradle-plugin"
  46. // }
  47. // }
  48. //}