Repository navigation
Open
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: buildBuilding flutter applications with the toolBuilding flutter applications with the toolp: toolingAffects the flutter_plugin_tools packageAffects the flutter_plugin_tools packaget: gradle"flutter build" and "flutter run" on Android"flutter build" and "flutter run" on Androidteam-androidOwned by Android platform teamOwned by Android platform teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-androidTriaged by Android platform teamTriaged by Android platform team
Description
We want a command like flutter build --config-only (or similar) to download Gradle dependencies and list the jar files. Preferably this should work even if the Flutter project is a plugin and not an application with a main function.
This is useful for jnigen where we want to generate Dart bindings for an application's gradle dependencies.
Similarly, downloading source jars and Javadocs are useful, here is a task that downloads the source artifacts. (Replacing SourcesArtifact with JavadocArtifact will do the same for Javadocs)
tasks.register("getSources") {
doLast {
val componentIds =
configurations["releaseCompileClasspath"].incoming.resolutionResult.allDependencies.map { it.from.id }
val result = dependencies.createArtifactResolutionQuery().forComponents(componentIds)
.withArtifacts(JvmLibrary::class.java, SourcesArtifact::class.java).execute()
val sourceArtifacts = mutableListOf<File>()
result.resolvedComponents.forEach { component ->
val sources = component.getArtifacts(SourcesArtifact::class.java)
sources.forEach { artifact ->
if (artifact is ResolvedArtifactResult) {
sourceArtifacts.add(artifact.file)
}
}
}
sourceArtifacts.forEach { println(it) }
}
}Context: dart-lang/native#628
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: buildBuilding flutter applications with the toolBuilding flutter applications with the toolp: toolingAffects the flutter_plugin_tools packageAffects the flutter_plugin_tools packaget: gradle"flutter build" and "flutter run" on Android"flutter build" and "flutter run" on Androidteam-androidOwned by Android platform teamOwned by Android platform teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-androidTriaged by Android platform teamTriaged by Android platform team
Activity
flutter-triage-bot commentedon Jan 15, 2026
This issue is assigned to @HosseinYousefi but has had no recent status updates. Please consider unassigning this issue if it is not going to be addressed in the near future. This allows people to have a clearer picture of what work is actually planned. Thanks!
flutter-triage-bot commentedon Jan 15, 2026
This issue was assigned to @HosseinYousefi but has had no status updates in a long time. To remove any ambiguity about whether the issue is being worked on, the assignee was removed.