summaryrefslogtreecommitdiff
path: root/build.gradle.kts
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2021-04-01 05:52:43 +0530
committerGitHub <noreply@github.com>2021-04-01 05:52:43 +0530
commit4c8c0f44c8d33673fd7421dd638dc9d60b470181 (patch)
tree99c2e7fd56efb462872371d214b21597e2385f3c /build.gradle.kts
parent62b514cae430a0fdcb45f8b0bba3c03d08cfcb58 (diff)
Update all dependencies (#1358)
* build: update all dependencies Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * autofill-parser: add new hints Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * build: force the right annotation version manually Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> Co-authored-by: Fabian Meumertzheim <fabian@meumertzhe.im>
Diffstat (limited to 'build.gradle.kts')
-rw-r--r--build.gradle.kts11
1 files changed, 11 insertions, 0 deletions
diff --git a/build.gradle.kts b/build.gradle.kts
index 1ab2b205..300a1256 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -12,10 +12,21 @@ buildscript { dependencies { classpath(Plugins.ktfmtGradlePlugin) } }
allprojects { apply(plugin = "com.ncorti.ktfmt.gradle") }
subprojects {
+ // Gradle's automatic resolution fails to handle AndroidX annotation for
+ // some reason so here we simply hack it up to use the correct version manually.
+ val annotationParts = Dependencies.AndroidX.annotation.split(":")
+ val annotationGroup = annotationParts[0]
+ val annotationModule = annotationParts[1]
+ val annotationVersion = annotationParts[2]
configurations.all {
resolutionStrategy.dependencySubstitution {
substitute(module("org.jetbrains.trove4j:trove4j:20160824"))
.using(module("org.jetbrains.intellij.deps:trove4j:1.0.20200330"))
}
+ resolutionStrategy.eachDependency {
+ if (requested.group == annotationGroup && requested.name == annotationModule) {
+ useVersion(annotationVersion)
+ }
+ }
}
}