FlatpakSourcesExtension

abstract class FlatpakSourcesExtension @Inject constructor(objects: ObjectFactory)(source)

Configuration extension for the org.meshtastic.flatpak.sources plugin.

flatpakSources {
outputFile.set(layout.buildDirectory.file("flatpak-sources.json"))
destPrefix.set("offline-repository")
mustRunAfterTasks.set(listOf(":app:assemble"))
generateMirrors.set(true)
excludeSuffixes.set(setOf("-sources.jar", "-javadoc.jar"))
}

Constructors

Link copied to clipboard
@Inject
constructor(objects: ObjectFactory)

Properties

Link copied to clipboard

Name of the Gradle extension used to share captured URLs from the init script.

Link copied to clipboard
val destPrefix: Property<String>

Destination path prefix inside the Flatpak sandbox (e.g., "offline-repository").

Link copied to clipboard
val excludeSuffixes: SetProperty<String>

URL filename suffixes to exclude from the manifest (e.g., sources/javadoc jars).

Link copied to clipboard
val generateMirrors: Property<Boolean>

Whether to generate Maven Central mirror URLs in the output.

Link copied to clipboard
val mustRunAfterTasks: ListProperty<String>

Task paths that the capture task must run after (ensuring dependencies are resolved first).

Link copied to clipboard
val outputFile: RegularFileProperty

Output file for the generated Flatpak sources JSON manifest.

Link copied to clipboard
val platformDependencies: SetProperty<String>

Platform-specific dependencies to force-resolve for the target platforms. Each entry is a Maven coordinate template with {platform} placeholder: e.g., org.jetbrains.skiko:skiko-awt-runtime-{platform}:0.144.6

Link copied to clipboard
val targetPlatforms: SetProperty<String>

Platform targets whose native artifacts should be force-resolved during capture. Use for platform-specific dependencies not resolved on the generation host OS (e.g., building manifest on macOS but targeting a Linux Flatpak).