build.gradle 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'maven-publish'
  3. android {
  4. compileSdkVersion 30
  5. buildToolsVersion "30.0.3"
  6. defaultConfig {
  7. minSdkVersion 19
  8. targetSdkVersion 30
  9. versionCode 121000
  10. versionName "1.2100.0"
  11. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  12. consumerProguardFiles 'consumer-rules.pro'
  13. }
  14. buildTypes {
  15. release {
  16. minifyEnabled true
  17. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  18. }
  19. }
  20. }
  21. afterEvaluate {
  22. publishing {
  23. publications {
  24. // Creates a Maven publication called "release".
  25. mavenPublish(MavenPublication) {
  26. // Applies the component for the release build variant.
  27. from components.release
  28. // You can then customize attributes of the publication as shown below.
  29. groupId = 'com.hgsoft.app'
  30. artifactId = 'debuglogShow'
  31. version = '1.2100.1'
  32. }
  33. }
  34. repositories {
  35. maven {
  36. credentials {
  37. username 'yinxueqin'
  38. password 'hgits1024'
  39. }
  40. url = 'https://nexus.hgits.cn/nexus/repository/hgsoft/'
  41. }
  42. }
  43. }
  44. }
  45. dependencies {
  46. implementation fileTree(dir: 'libs', include: ['*.jar'])
  47. compileOnly 'com.google.android.material:material:1.4.0'
  48. compileOnly 'androidx.appcompat:appcompat:1.3.1'
  49. testImplementation 'junit:junit:4.13.2'
  50. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  51. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  52. }