build.gradle 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. apply plugin: 'com.android.library'
  2. // https://docs.gradle.org/current/userguide/publishing_maven.html
  3. // http://www.flexlabs.org/2013/06/using-local-aar-android-library-packages-in-gradle-builds
  4. apply plugin: 'maven-publish'
  5. android {
  6. compileSdkVersion rootProject.compileSdkVersion
  7. buildToolsVersion rootProject.buildToolsVersion
  8. defaultConfig {
  9. minSdkVersion 14
  10. targetSdkVersion rootProject.compileSdkVersion
  11. versionCode 1
  12. versionName PUBLISH_VERSION
  13. }
  14. compileOptions {
  15. sourceCompatibility JavaVersion.VERSION_1_7
  16. targetCompatibility JavaVersion.VERSION_1_7
  17. }
  18. lintOptions {
  19. abortOnError false
  20. }
  21. }
  22. // This configuration is used to publish the library to a local repo while a being forked and modified.
  23. // It should really be set up so that the version are all in line, and set to be a SNAPSHOT.
  24. // The version listed here is a temp hack to allow me to keep working.
  25. android.libraryVariants
  26. publishing {
  27. publications {
  28. maven(MavenPublication) {
  29. groupId PUBLISH_GROUP_ID
  30. artifactId PUBLISH_ARTIFACT_ID
  31. version PUBLISH_VERSION + '-SNAPSHOT'
  32. //artifact bundleRelease
  33. }
  34. }
  35. }
  36. apply from: 'https://raw.githubusercontent.com/blundell/release-android-library/master/android-release-aar.gradle'
  37. dependencies {
  38. api "androidx.appcompat:appcompat:$androidXLibraryVersion"
  39. implementation "androidx.exifinterface:exifinterface:$androidXLibraryVersion"
  40. }