Skip to content

Commit

Permalink
Dependencies file (#559)
Browse files Browse the repository at this point in the history
  • Loading branch information
gthea authored Nov 17, 2023
2 parents 095e7fb + 01fca6f commit 0524242
Show file tree
Hide file tree
Showing 2 changed files with 166 additions and 0 deletions.
28 changes: 28 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -292,3 +292,31 @@ artifacts {
archives sourcesJar
archives javadocJar
}

task printReleaseDependenciesToFile {
doLast {
def outputFile = new File("$projectDir/deps.txt")
def processBuilder = new ProcessBuilder("./gradlew", ":android-client:dependencies", "--configuration", "releaseRuntimeClasspath", "-q")

outputFile.parentFile.mkdirs()
outputFile.text = '' // Clear the file before writing
processBuilder.redirectOutput(outputFile)
processBuilder.directory(project.rootDir)

try {
Process process = processBuilder.start()
process.waitFor()

def filteredLines = outputFile.readLines().findAll { !it.contains("BUILD SUCCESSFUL") }

// Write the filtered content back to the file
outputFile.withPrintWriter { writer ->
filteredLines.each(writer.&println)
}
} catch (Exception e) {
e.printStackTrace()
}
}
}

preBuild.dependsOn printReleaseDependenciesToFile
138 changes: 138 additions & 0 deletions deps.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@

------------------------------------------------------------
Project ':android-client'
------------------------------------------------------------

releaseRuntimeClasspath - Runtime classpath of /release.
+--- androidx.room:room-runtime:2.3.0
| +--- androidx.room:room-common:2.3.0
| | \--- androidx.annotation:annotation:1.1.0 -> 1.2.0
| +--- androidx.sqlite:sqlite-framework:2.1.0
| | +--- androidx.annotation:annotation:1.0.0 -> 1.2.0
| | \--- androidx.sqlite:sqlite:2.1.0
| | \--- androidx.annotation:annotation:1.0.0 -> 1.2.0
| +--- androidx.sqlite:sqlite:2.1.0 (*)
| +--- androidx.arch.core:core-runtime:2.0.1 -> 2.1.0
| | +--- androidx.annotation:annotation:1.1.0 -> 1.2.0
| | \--- androidx.arch.core:core-common:2.1.0
| | \--- androidx.annotation:annotation:1.1.0 -> 1.2.0
| \--- androidx.annotation:annotation-experimental:1.1.0
+--- androidx.work:work-runtime:2.7.1
| +--- androidx.annotation:annotation-experimental:1.0.0 -> 1.1.0
| +--- com.google.guava:listenablefuture:1.0 -> 9999.0-empty-to-avoid-conflict-with-guava
| +--- androidx.lifecycle:lifecycle-livedata:2.1.0
| | +--- androidx.arch.core:core-runtime:2.1.0 (*)
| | +--- androidx.lifecycle:lifecycle-livedata-core:2.1.0
| | | +--- androidx.lifecycle:lifecycle-common:2.1.0 -> 2.5.1
| | | | \--- androidx.annotation:annotation:1.1.0 -> 1.2.0
| | | +--- androidx.arch.core:core-common:2.1.0 (*)
| | | \--- androidx.arch.core:core-runtime:2.1.0 (*)
| | \--- androidx.arch.core:core-common:2.1.0 (*)
| +--- androidx.startup:startup-runtime:1.0.0 -> 1.1.1
| | +--- androidx.annotation:annotation:1.1.0 -> 1.2.0
| | \--- androidx.tracing:tracing:1.0.0
| | \--- androidx.annotation:annotation:1.1.0 -> 1.2.0
| +--- androidx.core:core:1.6.0
| | +--- androidx.annotation:annotation:1.2.0
| | +--- androidx.annotation:annotation-experimental:1.1.0
| | +--- androidx.lifecycle:lifecycle-runtime:2.0.0 -> 2.5.1
| | | +--- androidx.annotation:annotation:1.1.0 -> 1.2.0
| | | +--- androidx.arch.core:core-common:2.1.0 (*)
| | | +--- androidx.arch.core:core-runtime:2.1.0 (*)
| | | \--- androidx.lifecycle:lifecycle-common:2.5.1 (*)
| | +--- androidx.versionedparcelable:versionedparcelable:1.1.1
| | | +--- androidx.annotation:annotation:1.1.0 -> 1.2.0
| | | \--- androidx.collection:collection:1.0.0
| | | \--- androidx.annotation:annotation:1.0.0 -> 1.2.0
| | \--- androidx.collection:collection:1.0.0 (*)
| +--- androidx.room:room-runtime:2.2.5 -> 2.3.0 (*)
| +--- androidx.sqlite:sqlite:2.1.0 (*)
| +--- androidx.sqlite:sqlite-framework:2.1.0 (*)
| +--- androidx.core:core:1.1.0 -> 1.6.0 (*)
| \--- androidx.lifecycle:lifecycle-service:2.1.0
| \--- androidx.lifecycle:lifecycle-runtime:2.1.0 -> 2.5.1 (*)
+--- androidx.lifecycle:lifecycle-process:2.5.1
| +--- androidx.annotation:annotation:1.2.0
| +--- androidx.lifecycle:lifecycle-runtime:2.5.1 (*)
| \--- androidx.startup:startup-runtime:1.1.1 (*)
+--- androidx.annotation:annotation:1.2.0
+--- com.google.code.gson:gson:2.9.1
+--- com.google.guava:guava:32.0.0-android
| +--- com.google.guava:failureaccess:1.0.1
| +--- com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava
| +--- com.google.code.findbugs:jsr305:3.0.2
| +--- org.checkerframework:checker-qual:3.33.0
| +--- com.google.errorprone:error_prone_annotations:2.18.0
| \--- com.google.j2objc:j2objc-annotations:2.8
+--- org.yaml:snakeyaml:2.0
+--- org.jetbrains:annotations:22.0.0
+--- com.squareup.okhttp3:okhttp:3.12.13
| \--- com.squareup.okio:okio:1.15.0
+--- com.google.android.gms:play-services-base:17.6.0
| +--- androidx.collection:collection:1.0.0 (*)
| +--- androidx.core:core:1.2.0 -> 1.6.0 (*)
| +--- androidx.fragment:fragment:1.0.0
| | +--- androidx.core:core:1.0.0 -> 1.6.0 (*)
| | +--- androidx.legacy:legacy-support-core-ui:1.0.0
| | | +--- androidx.annotation:annotation:1.0.0 -> 1.2.0
| | | +--- androidx.core:core:1.0.0 -> 1.6.0 (*)
| | | +--- androidx.legacy:legacy-support-core-utils:1.0.0
| | | | +--- androidx.annotation:annotation:1.0.0 -> 1.2.0
| | | | +--- androidx.core:core:1.0.0 -> 1.6.0 (*)
| | | | +--- androidx.documentfile:documentfile:1.0.0
| | | | | \--- androidx.annotation:annotation:1.0.0 -> 1.2.0
| | | | +--- androidx.loader:loader:1.0.0
| | | | | +--- androidx.annotation:annotation:1.0.0 -> 1.2.0
| | | | | +--- androidx.core:core:1.0.0 -> 1.6.0 (*)
| | | | | +--- androidx.lifecycle:lifecycle-livedata:2.0.0 -> 2.1.0 (*)
| | | | | \--- androidx.lifecycle:lifecycle-viewmodel:2.0.0
| | | | | \--- androidx.annotation:annotation:1.0.0 -> 1.2.0
| | | | +--- androidx.localbroadcastmanager:localbroadcastmanager:1.0.0
| | | | | \--- androidx.annotation:annotation:1.0.0 -> 1.2.0
| | | | \--- androidx.print:print:1.0.0
| | | | \--- androidx.annotation:annotation:1.0.0 -> 1.2.0
| | | +--- androidx.customview:customview:1.0.0
| | | | +--- androidx.annotation:annotation:1.0.0 -> 1.2.0
| | | | \--- androidx.core:core:1.0.0 -> 1.6.0 (*)
| | | +--- androidx.viewpager:viewpager:1.0.0
| | | | +--- androidx.annotation:annotation:1.0.0 -> 1.2.0
| | | | +--- androidx.core:core:1.0.0 -> 1.6.0 (*)
| | | | \--- androidx.customview:customview:1.0.0 (*)
| | | +--- androidx.coordinatorlayout:coordinatorlayout:1.0.0
| | | | +--- androidx.annotation:annotation:1.0.0 -> 1.2.0
| | | | +--- androidx.core:core:1.0.0 -> 1.6.0 (*)
| | | | \--- androidx.customview:customview:1.0.0 (*)
| | | +--- androidx.drawerlayout:drawerlayout:1.0.0
| | | | +--- androidx.annotation:annotation:1.0.0 -> 1.2.0
| | | | +--- androidx.core:core:1.0.0 -> 1.6.0 (*)
| | | | \--- androidx.customview:customview:1.0.0 (*)
| | | +--- androidx.slidingpanelayout:slidingpanelayout:1.0.0
| | | | +--- androidx.annotation:annotation:1.0.0 -> 1.2.0
| | | | +--- androidx.core:core:1.0.0 -> 1.6.0 (*)
| | | | \--- androidx.customview:customview:1.0.0 (*)
| | | +--- androidx.interpolator:interpolator:1.0.0
| | | | \--- androidx.annotation:annotation:1.0.0 -> 1.2.0
| | | +--- androidx.swiperefreshlayout:swiperefreshlayout:1.0.0
| | | | +--- androidx.annotation:annotation:1.0.0 -> 1.2.0
| | | | +--- androidx.core:core:1.0.0 -> 1.6.0 (*)
| | | | \--- androidx.interpolator:interpolator:1.0.0 (*)
| | | +--- androidx.asynclayoutinflater:asynclayoutinflater:1.0.0
| | | | +--- androidx.annotation:annotation:1.0.0 -> 1.2.0
| | | | \--- androidx.core:core:1.0.0 -> 1.6.0 (*)
| | | \--- androidx.cursoradapter:cursoradapter:1.0.0
| | | \--- androidx.annotation:annotation:1.0.0 -> 1.2.0
| | +--- androidx.legacy:legacy-support-core-utils:1.0.0 (*)
| | +--- androidx.annotation:annotation:1.0.0 -> 1.2.0
| | +--- androidx.loader:loader:1.0.0 (*)
| | \--- androidx.lifecycle:lifecycle-viewmodel:2.0.0 (*)
| +--- com.google.android.gms:play-services-basement:17.6.0
| | +--- androidx.collection:collection:1.0.0 (*)
| | +--- androidx.core:core:1.2.0 -> 1.6.0 (*)
| | \--- androidx.fragment:fragment:1.0.0 (*)
| \--- com.google.android.gms:play-services-tasks:17.2.1
| \--- com.google.android.gms:play-services-basement:17.6.0 (*)
\--- androidx.multidex:multidex:2.0.1

(*) - dependencies omitted (listed previously)

A web-based, searchable dependency report is available by adding the --scan option.

0 comments on commit 0524242

Please sign in to comment.