Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate the
dependency-guard
Gradle plugin
The plugin is applied to every module of the project, on the `runtime*Classpath`
- Loading branch information
Showing
88 changed files
with
769 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Dependency guard | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
dependency-guard: | ||
name: Dependency guard | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'adopt' | ||
java-version: 17 | ||
|
||
- uses: gradle/actions/setup-gradle@v3 | ||
|
||
- name: Run dependency guard | ||
run: ./gradlew dependencyGuard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
buildSrc/src/main/groovy/org/robolectric/gradle/DependencyGuardPlugin.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package org.robolectric.gradle | ||
|
||
import org.gradle.api.Plugin | ||
import org.gradle.api.Project | ||
|
||
class DependencyGuardPlugin implements Plugin<Project> { | ||
Closure<Project> doApply = { | ||
project.apply plugin: "com.dropbox.dependency-guard" | ||
|
||
dependencyGuard { | ||
def configurationName | ||
if (project.plugins.hasPlugin("com.android.library")) { | ||
configurationName = "releaseRuntimeClasspath" | ||
} else { | ||
configurationName = "runtimeClasspath" | ||
} | ||
|
||
configuration(configurationName) | ||
} | ||
} | ||
|
||
@Override | ||
void apply(Project project) { | ||
doApply.delegate = project | ||
doApply.resolveStrategy = Closure.DELEGATE_ONLY | ||
doApply() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
aopalliance:aopalliance:1.0 | ||
com.github.ben-manes.caffeine:caffeine:3.0.5 | ||
com.github.kevinstern:software-and-algorithms:1.0 | ||
com.google.auto.service:auto-service-annotations:1.0.1 | ||
com.google.auto.value:auto-value-annotations:1.9 | ||
com.google.auto:auto-common:1.2.1 | ||
com.google.code.findbugs:jsr305:3.0.2 | ||
com.google.errorprone:error_prone_annotation:2.19.1 | ||
com.google.errorprone:error_prone_annotations:2.19.1 | ||
com.google.errorprone:error_prone_check_api:2.19.1 | ||
com.google.errorprone:error_prone_core:2.19.1 | ||
com.google.errorprone:error_prone_refaster:2.19.1 | ||
com.google.errorprone:error_prone_type_annotations:2.19.1 | ||
com.google.guava:failureaccess:1.0.1 | ||
com.google.guava:guava:31.1-jre | ||
com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava | ||
com.google.inject:guice:5.1.0 | ||
com.google.j2objc:j2objc-annotations:1.3 | ||
com.google.protobuf:protobuf-java:3.19.2 | ||
io.github.java-diff-utils:java-diff-utils:4.0 | ||
javax.annotation:javax.annotation-api:1.3.2 | ||
javax.inject:javax.inject:1 | ||
org.checkerframework:checker-qual:3.12.0 | ||
org.checkerframework:dataflow-errorprone:3.27.0 | ||
org.eclipse.jgit:org.eclipse.jgit:4.4.1.201607150455-r | ||
org.pcollections:pcollections:3.1.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
integration_tests/androidx/dependencies/releaseRuntimeClasspath.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
androidx.activity:activity:1.6.0 | ||
androidx.annotation:annotation-experimental:1.3.0 | ||
androidx.annotation:annotation-jvm:1.6.0 | ||
androidx.annotation:annotation:1.6.0 | ||
androidx.appcompat:appcompat-resources:1.6.1 | ||
androidx.appcompat:appcompat:1.6.1 | ||
androidx.arch.core:core-common:2.1.0 | ||
androidx.arch.core:core-runtime:2.1.0 | ||
androidx.collection:collection:1.1.0 | ||
androidx.concurrent:concurrent-futures:1.0.0 | ||
androidx.core:core-ktx:1.9.0 | ||
androidx.core:core:1.9.0 | ||
androidx.cursoradapter:cursoradapter:1.0.0 | ||
androidx.customview:customview:1.0.0 | ||
androidx.drawerlayout:drawerlayout:1.0.0 | ||
androidx.emoji2:emoji2-views-helper:1.2.0 | ||
androidx.emoji2:emoji2:1.2.0 | ||
androidx.fragment:fragment:1.3.6 | ||
androidx.interpolator:interpolator:1.0.0 | ||
androidx.lifecycle:lifecycle-common:2.5.1 | ||
androidx.lifecycle:lifecycle-livedata-core:2.5.1 | ||
androidx.lifecycle:lifecycle-livedata:2.0.0 | ||
androidx.lifecycle:lifecycle-process:2.4.1 | ||
androidx.lifecycle:lifecycle-runtime:2.5.1 | ||
androidx.lifecycle:lifecycle-viewmodel-savedstate:2.5.1 | ||
androidx.lifecycle:lifecycle-viewmodel:2.5.1 | ||
androidx.loader:loader:1.0.0 | ||
androidx.resourceinspection:resourceinspection-annotation:1.0.1 | ||
androidx.savedstate:savedstate:1.2.0 | ||
androidx.startup:startup-runtime:1.1.1 | ||
androidx.tracing:tracing:1.0.0 | ||
androidx.vectordrawable:vectordrawable-animated:1.1.0 | ||
androidx.vectordrawable:vectordrawable:1.1.0 | ||
androidx.versionedparcelable:versionedparcelable:1.1.1 | ||
androidx.viewpager:viewpager:1.0.0 | ||
androidx.window.extensions.core:core:1.0.0 | ||
androidx.window:window:1.2.0 | ||
com.google.guava:listenablefuture:1.0 | ||
org.jetbrains.kotlin:kotlin-stdlib:1.9.21 | ||
org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.0 | ||
org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.8.0 | ||
org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.8.0 | ||
org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.0 | ||
org.jetbrains:annotations:23.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
integration_tests/androidx_test/dependencies/releaseRuntimeClasspath.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
androidx.activity:activity:1.6.0 | ||
androidx.annotation:annotation-experimental:1.3.0 | ||
androidx.annotation:annotation:1.3.0 | ||
androidx.appcompat:appcompat-resources:1.6.1 | ||
androidx.appcompat:appcompat:1.6.1 | ||
androidx.arch.core:core-common:2.1.0 | ||
androidx.arch.core:core-runtime:2.1.0 | ||
androidx.collection:collection:1.1.0 | ||
androidx.concurrent:concurrent-futures:1.0.0 | ||
androidx.constraintlayout:constraintlayout-core:1.0.4 | ||
androidx.constraintlayout:constraintlayout:2.1.4 | ||
androidx.core:core-ktx:1.9.0 | ||
androidx.core:core:1.9.0 | ||
androidx.cursoradapter:cursoradapter:1.0.0 | ||
androidx.customview:customview:1.0.0 | ||
androidx.drawerlayout:drawerlayout:1.0.0 | ||
androidx.emoji2:emoji2-views-helper:1.2.0 | ||
androidx.emoji2:emoji2:1.2.0 | ||
androidx.fragment:fragment:1.3.6 | ||
androidx.interpolator:interpolator:1.0.0 | ||
androidx.lifecycle:lifecycle-common:2.5.1 | ||
androidx.lifecycle:lifecycle-livedata-core:2.5.1 | ||
androidx.lifecycle:lifecycle-livedata:2.0.0 | ||
androidx.lifecycle:lifecycle-process:2.4.1 | ||
androidx.lifecycle:lifecycle-runtime:2.5.1 | ||
androidx.lifecycle:lifecycle-viewmodel-savedstate:2.5.1 | ||
androidx.lifecycle:lifecycle-viewmodel:2.5.1 | ||
androidx.loader:loader:1.0.0 | ||
androidx.multidex:multidex:2.0.1 | ||
androidx.resourceinspection:resourceinspection-annotation:1.0.1 | ||
androidx.savedstate:savedstate:1.2.0 | ||
androidx.startup:startup-runtime:1.1.1 | ||
androidx.tracing:tracing:1.0.0 | ||
androidx.vectordrawable:vectordrawable-animated:1.1.0 | ||
androidx.vectordrawable:vectordrawable:1.1.0 | ||
androidx.versionedparcelable:versionedparcelable:1.1.1 | ||
androidx.viewpager:viewpager:1.0.0 | ||
com.google.guava:listenablefuture:1.0 | ||
org.jetbrains.kotlin:kotlin-stdlib-common:1.7.10 | ||
org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.6.0 | ||
org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.0 | ||
org.jetbrains.kotlin:kotlin-stdlib:1.7.10 | ||
org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.1 | ||
org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.6.1 | ||
org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.1 | ||
org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.1 | ||
org.jetbrains:annotations:13.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
integration_tests/compat-target28/dependencies/releaseRuntimeClasspath.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
org.jetbrains.kotlin:kotlin-stdlib:1.9.22 | ||
org.jetbrains:annotations:13.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
integration_tests/dependency-on-stubs/dependencies/runtimeClasspath.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
androidx.test.espresso:espresso-idling-resource:3.5.1 | ||
androidx.test:monitor:1.6.1 | ||
com.almworks.sqlite4java:sqlite4java:1.0.392 | ||
com.google.auto.value:auto-value-annotations:1.10.4 | ||
com.google.code.findbugs:jsr305:3.0.2 | ||
com.google.errorprone:error_prone_annotation:2.19.1 | ||
com.google.errorprone:error_prone_annotations:2.11.0 | ||
com.google.guava:failureaccess:1.0.1 | ||
com.google.guava:guava:31.1-jre | ||
com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava | ||
com.google.j2objc:j2objc-annotations:1.3 | ||
com.ibm.icu:icu4j:74.2 | ||
javax.annotation:javax.annotation-api:1.3.2 | ||
javax.inject:javax.inject:1 | ||
junit:junit:4.13.2 | ||
org.bouncycastle:bcprov-jdk18on:1.77 | ||
org.checkerframework:checker-qual:3.12.0 | ||
org.conscrypt:conscrypt-openjdk-uber:2.5.2 | ||
org.hamcrest:hamcrest-core:1.3 | ||
org.ow2.asm:asm-analysis:9.6 | ||
org.ow2.asm:asm-commons:9.6 | ||
org.ow2.asm:asm-tree:9.6 | ||
org.ow2.asm:asm-util:9.6 | ||
org.ow2.asm:asm:9.6 | ||
org.robolectric:nativeruntime-dist-compat:1.0.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
integration_tests/kotlin/dependencies/runtimeClasspath.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
androidx.annotation:annotation-jvm:1.7.1 | ||
androidx.annotation:annotation:1.7.1 | ||
androidx.test.espresso:espresso-idling-resource:3.5.1 | ||
androidx.test:monitor:1.6.1 | ||
com.almworks.sqlite4java:sqlite4java:1.0.392 | ||
com.google.auto.value:auto-value-annotations:1.10.4 | ||
com.google.code.findbugs:jsr305:3.0.2 | ||
com.google.errorprone:error_prone_annotation:2.19.1 | ||
com.google.errorprone:error_prone_annotations:2.11.0 | ||
com.google.guava:failureaccess:1.0.1 | ||
com.google.guava:guava:31.1-jre | ||
com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava | ||
com.google.j2objc:j2objc-annotations:1.3 | ||
com.ibm.icu:icu4j:74.2 | ||
javax.annotation:javax.annotation-api:1.3.2 | ||
javax.inject:javax.inject:1 | ||
org.bouncycastle:bcprov-jdk18on:1.77 | ||
org.checkerframework:checker-qual:3.12.0 | ||
org.conscrypt:conscrypt-openjdk-uber:2.5.2 | ||
org.jetbrains.kotlin:kotlin-stdlib-common:1.7.10 | ||
org.jetbrains.kotlin:kotlin-stdlib:1.7.10 | ||
org.jetbrains:annotations:13.0 | ||
org.ow2.asm:asm-analysis:9.6 | ||
org.ow2.asm:asm-commons:9.6 | ||
org.ow2.asm:asm-tree:9.6 | ||
org.ow2.asm:asm-util:9.6 | ||
org.ow2.asm:asm:9.6 | ||
org.robolectric:nativeruntime-dist-compat:1.0.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.