build.gradle 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. * multidexlib2 - Copyright 2015-2020 Rodrigo Balerdi
  3. * (GNU General Public License version 3 or later)
  4. *
  5. * multidexlib2 is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published
  7. * by the Free Software Foundation, either version 3 of the License,
  8. * or (at your option) any later version.
  9. */
  10. plugins {
  11. id 'java-library'
  12. id 'maven-publish'
  13. id 'signing'
  14. }
  15. def dexlib2Version = '3.0.3'
  16. def multidexlib2VersionSuffix = '.r3'
  17. group = 'app.revanced'
  18. version = dexlib2Version + multidexlib2VersionSuffix
  19. ext.mainArtifact = 'multidexlib2'
  20. ext.artifactName = mainArtifact
  21. sourceCompatibility = JavaVersion.VERSION_1_8
  22. targetCompatibility = JavaVersion.VERSION_1_8
  23. repositories {
  24. mavenCentral()
  25. google()
  26. }
  27. dependencies {
  28. api 'com.android.tools.smali:smali-dexlib2:' + dexlib2Version
  29. api 'com.google.guava:guava:32.1.2-jre'
  30. }
  31. apply from: 'configure-artifacts.gradle'
  32. apply from: 'configure-publishing.gradle'
  33. publishing {
  34. publications {
  35. gpr(MavenPublication) {
  36. artifactId = mainArtifact
  37. from components.java
  38. pom {
  39. name = artifactName
  40. configurePom it
  41. }
  42. }
  43. }
  44. }
  45. apply from: 'check-copyright.gradle'
  46. wrapper.distributionType = Wrapper.DistributionType.ALL