Skip to content

Commit

Permalink
add testFixturesRuntimeClasspath to dependency guard
Browse files Browse the repository at this point in the history
  • Loading branch information
RBusarow committed Dec 9, 2024
1 parent b266c51 commit 2259b47
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package com.squareup.anvil.conventions

import com.dropbox.gradle.plugins.dependencyguard.DependencyGuardPluginExtension
import com.rickbusarow.kgx.pluginId
import com.rickbusarow.kgx.withJavaTestFixturesPlugin
import com.squareup.anvil.conventions.utils.isInAnvilRootBuild
import com.squareup.anvil.conventions.utils.libs
import org.gradle.api.Project
Expand All @@ -23,8 +24,14 @@ open class LibraryPlugin : BasePlugin() {

private fun configureDependencyGuard(target: Project) {
target.plugins.apply(target.libs.plugins.dependencyGuard.pluginId)
target.extensions

val dependencyGuard = target.extensions
.getByType(DependencyGuardPluginExtension::class.java)
.configuration("runtimeClasspath")

dependencyGuard.configuration("runtimeClasspath")

target.plugins.withJavaTestFixturesPlugin {
dependencyGuard.configuration("testFixturesRuntimeClasspath")
}
}
}
48 changes: 48 additions & 0 deletions compiler-utils/dependencies/testFixturesRuntimeClasspath.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
com.google.auto.service:auto-service-annotations:1.1.1
com.google.auto.value:auto-value-annotations:1.11.0
com.google.auto.value:auto-value:1.11.0
com.google.code.findbugs:jsr305:3.0.2
com.google.dagger:dagger-compiler:2.52
com.google.dagger:dagger-spi:2.52
com.google.dagger:dagger:2.52
com.google.devtools.ksp:symbol-processing-aa-embeddable:2.0.0-1.0.22
com.google.devtools.ksp:symbol-processing-api:2.0.0-1.0.22
com.google.devtools.ksp:symbol-processing-common-deps:2.0.0-1.0.22
com.google.devtools.ksp:symbol-processing:2.0.0-1.0.22
com.google.errorprone:error_prone_annotations:2.28.0
com.google.errorprone:javac-shaded:9-dev-r4023-3
com.google.googlejavaformat:google-java-format:1.5
com.google.guava:failureaccess:1.0.2
com.google.guava:guava:33.2.1-android
com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava
com.google.truth:truth:1.4.4
com.squareup.okio:okio-jvm:3.9.0
com.squareup.okio:okio:3.9.0
com.squareup:javapoet:1.13.0
com.squareup:kotlinpoet-jvm:1.18.1
com.squareup:kotlinpoet-ksp:1.18.1
com.squareup:kotlinpoet:1.18.1
dev.zacsweers.kctfork:core:0.5.1
dev.zacsweers.kctfork:ksp:0.5.1
io.github.classgraph:classgraph:4.8.174
jakarta.inject:jakarta.inject-api:2.0.1
javax.annotation:jsr250-api:1.0
javax.inject:javax.inject:1
junit:junit:4.13.2
net.ltgt.gradle.incap:incap:0.2
org.checkerframework:checker-compat-qual:2.5.5
org.checkerframework:checker-qual:3.42.0
org.hamcrest:hamcrest-core:1.3
org.jetbrains.intellij.deps:trove4j:1.0.20200330
org.jetbrains.kotlin:kotlin-annotation-processing-compiler:2.0.0
org.jetbrains.kotlin:kotlin-annotation-processing-embeddable:2.0.0
org.jetbrains.kotlin:kotlin-bom:2.0.21
org.jetbrains.kotlin:kotlin-compiler-embeddable:2.0.21
org.jetbrains.kotlin:kotlin-daemon-embeddable:2.0.21
org.jetbrains.kotlin:kotlin-reflect:2.0.21
org.jetbrains.kotlin:kotlin-script-runtime:2.0.21
org.jetbrains.kotlin:kotlin-stdlib:2.0.21
org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.4
org.jetbrains:annotations:13.0
org.jspecify:jspecify:0.3.0
org.ow2.asm:asm:9.7

0 comments on commit 2259b47

Please sign in to comment.