2020-07-23 09:09:36 +00:00
|
|
|
/*
|
2021-03-09 09:15:27 +00:00
|
|
|
* Copyright © 2014-2021 The Android Password Store Authors. All Rights Reserved.
|
2020-07-23 09:09:36 +00:00
|
|
|
* SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
*/
|
|
|
|
plugins {
|
2021-03-09 09:23:11 +00:00
|
|
|
`binary-compatibility-validator`
|
|
|
|
`aps-plugin`
|
2020-07-23 09:09:36 +00:00
|
|
|
}
|
2021-03-16 19:04:13 +00:00
|
|
|
|
2021-03-09 09:23:11 +00:00
|
|
|
buildscript { dependencies { classpath(Plugins.ktfmtGradlePlugin) } }
|
2021-03-09 09:11:51 +00:00
|
|
|
|
2021-03-09 09:23:11 +00:00
|
|
|
allprojects { apply(plugin = "com.ncorti.ktfmt.gradle") }
|
2021-03-09 09:11:51 +00:00
|
|
|
|
2021-03-16 19:04:13 +00:00
|
|
|
subprojects {
|
2021-04-01 00:22:43 +00:00
|
|
|
// 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]
|
2021-03-09 09:23:11 +00:00
|
|
|
configurations.all {
|
|
|
|
resolutionStrategy.dependencySubstitution {
|
|
|
|
substitute(module("org.jetbrains.trove4j:trove4j:20160824"))
|
|
|
|
.using(module("org.jetbrains.intellij.deps:trove4j:1.0.20200330"))
|
2021-03-16 19:04:13 +00:00
|
|
|
}
|
2021-04-01 00:22:43 +00:00
|
|
|
resolutionStrategy.eachDependency {
|
|
|
|
if (requested.group == annotationGroup && requested.name == annotationModule) {
|
|
|
|
useVersion(annotationVersion)
|
|
|
|
}
|
|
|
|
}
|
2021-03-09 09:23:11 +00:00
|
|
|
}
|
2021-03-16 19:04:13 +00:00
|
|
|
}
|