diff options
Diffstat (limited to 'library/build.gradle')
-rw-r--r-- | library/build.gradle | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/library/build.gradle b/library/build.gradle index bd60c4ba..a22f85d2 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -37,16 +37,15 @@ android { } } -apply from: "https://raw.githubusercontent.com/mcxiaoke/gradle-mvn-push/master/gradle-mvn-push.gradle" +apply from: "$rootProject.projectDir/scripts/upload.gradle" // All dependencies are written to the pom file with the default type (.jar). Since we're uploading the gif decoder // as an aar we need to change the type in the pom file to match or maven/gradle wont' be able to find the transitive // dependency. afterEvaluate { - def installer = install.repositories.mavenInstaller def deployer = uploadArchives.repositories.mavenDeployer - [installer, deployer]*.pom*.whenConfigured { pom -> + [deployer]*.pom*.whenConfigured { pom -> pom.dependencies.find { dep -> dep.groupId == 'com.github.bumptech.glide' && dep.artifactId == 'glide-gif-decoder' }.type = "aar" |