62 lines
2.0 KiB
Groovy
62 lines
2.0 KiB
Groovy
plugins {
|
|
alias libs.plugins.android.application apply false
|
|
alias libs.plugins.android.library apply false
|
|
alias libs.plugins.android.test apply false
|
|
alias libs.plugins.hilt.android apply false
|
|
alias libs.plugins.kotlin.android apply false
|
|
alias libs.plugins.kotlin.kapt apply false
|
|
alias libs.plugins.kotlin.parcelize apply false
|
|
alias libs.plugins.ksp apply false
|
|
alias libs.plugins.paparazzi apply false
|
|
alias libs.plugins.spotless
|
|
}
|
|
|
|
apply from: 'spotless.gradle'
|
|
apply from: 'projectDependencyGraph.gradle'
|
|
|
|
allprojects {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
gradlePluginPortal()
|
|
maven { url 'https://jitpack.io' }
|
|
maven {
|
|
url 'https://oss.sonatype.org/content/repositories/snapshots/'
|
|
}
|
|
maven {
|
|
credentials {
|
|
username 'nexus-user'
|
|
password 'nexus-user'
|
|
}
|
|
url "https://nexus.cmd.navi-tech.in/repository/maven-snapshots"
|
|
}
|
|
maven {
|
|
credentials {
|
|
username 'nexus-user'
|
|
password 'nexus-user'
|
|
}
|
|
url "https://nexus.cmd.navi-tech.in/repository/maven-releases"
|
|
}
|
|
}
|
|
}
|
|
|
|
subprojects {
|
|
plugins.withId("app.cash.paparazzi") {
|
|
// Defer until afterEvaluate so that testImplementation is created by Android plugin.
|
|
afterEvaluate {
|
|
dependencies.constraints {
|
|
add("testImplementation", "com.google.guava:guava") {
|
|
attributes {
|
|
attribute(
|
|
TargetJvmEnvironment.TARGET_JVM_ENVIRONMENT_ATTRIBUTE,
|
|
objects.named(TargetJvmEnvironment, TargetJvmEnvironment.STANDARD_JVM)
|
|
)
|
|
}
|
|
because("LayoutLib and sdk-common depend on Guava's -jre published variant." +
|
|
"See https://github.com/cashapp/paparazzi/issues/906.")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|