build.gradle 962 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //apply plugin: 'java-library'
  2. apply plugin: 'com.android.library'
  3. ext {
  4. PUBLISH_GROUP_ID = "com.kongzue.dialogx.style" //项目包名
  5. PUBLISH_ARTIFACT_ID = 'DialogXInterface' //项目名
  6. PUBLISH_VERSION = DIALOGX_STYLE_VERSION //版本号
  7. }
  8. apply from: "${rootProject.projectDir}/publish-mavencentral.gradle"
  9. android {
  10. compileSdkVersion 30
  11. defaultConfig {
  12. minSdkVersion 19
  13. targetSdkVersion 30
  14. }
  15. buildTypes {
  16. release {
  17. minifyEnabled false
  18. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  19. }
  20. }
  21. }
  22. task sourcesJar(type: Jar) {
  23. from android.sourceSets.main.java.srcDirs
  24. classifier = 'sources'
  25. }
  26. artifacts {
  27. archives sourcesJar
  28. }
  29. dependencies {
  30. //implementation fileTree(dir: 'libs', include: ['*.jar'])
  31. compileOnly files('libs\\android.jar')
  32. }
  33. //sourceCompatibility = "1.7"
  34. //targetCompatibility = "1.7"