Flatpak Sources Settings Plugin
Settings plugin that captures external resource URLs throughout the entire build.
Uses BuildEventListenerRegistryInternal.onOperationCompletion with a BuildService — the same pattern as gradle/github-dependency-graph-gradle-plugin. Supports unlimited concurrent listeners and coexists with Develocity or any other build tooling.
A post-build cache scan (executed during the captureFlatpakSources task) fills gaps for downloads that occurred before the listener attached — namely included build plugin resolution (e.g. build-logic's kotlin-dsl) and settings plugin bootstrap.
// settings.gradle.kts
plugins {
id("org.meshtastic.flatpak.sources.settings") version "0.1.2"
}Content copied to clipboard