build.gradle 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. plugins {
  2. id 'java-platform'
  3. id 'maven-publish'
  4. }
  5. ext {
  6. GROUP_ID = 'com.wenext.android'
  7. ARTIFACT_ID = 'frame-bom'
  8. VERSION = '6.1.1'
  9. }
  10. dependencies {
  11. //在constraints块中定义依赖版本约束
  12. constraints {
  13. rootProject.allprojects
  14. .findAll {
  15. it.path.startsWith(":external:")
  16. || (it.path.startsWith(":frame:") && !it.path.contains("trace") && !it.path.contains("bundletool"))
  17. }
  18. .forEach { api(project(it.path)) }
  19. }
  20. }
  21. publishing {
  22. publications {
  23. mavenJava(MavenPublication) {
  24. from components.javaPlatform
  25. groupId project.GROUP_ID
  26. artifactId project.ARTIFACT_ID
  27. version project.VERSION
  28. }
  29. }
  30. repositories {
  31. maven {
  32. url 'http://8.134.139.102:8085/repository/wenext-android/'
  33. credentials {
  34. username 'admin'
  35. password 'e405f245-3a0e-4de7-8768-c4c62bdea293'
  36. }
  37. allowInsecureProtocol = true//允许 Gradle 使用不安全的协议
  38. }
  39. }
  40. }