From 88959322da8e89a5a134d636b18518bc7a842dc9 Mon Sep 17 00:00:00 2001 From: Silvio Giebl Date: Mon, 1 Jan 2024 23:06:16 +0100 Subject: [PATCH] Format OciMetadata --- .../io/github/sgtsilvio/gradle/oci/metadata/OciMetadata.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/io/github/sgtsilvio/gradle/oci/metadata/OciMetadata.kt b/src/main/kotlin/io/github/sgtsilvio/gradle/oci/metadata/OciMetadata.kt index 50835c79..bc5ad7a6 100644 --- a/src/main/kotlin/io/github/sgtsilvio/gradle/oci/metadata/OciMetadata.kt +++ b/src/main/kotlin/io/github/sgtsilvio/gradle/oci/metadata/OciMetadata.kt @@ -109,7 +109,10 @@ internal fun createManifest(configDescriptor: OciDescriptor, bundles: List>, component: OciComponent): OciDataDescriptor { +internal fun createIndex( + manifestDescriptors: List>, + component: OciComponent, +): OciDataDescriptor { val data = jsonObject { // sorted for canonical json: annotations, manifests, mediaType, schemaVersion addObjectIfNotEmpty("annotations", component.indexAnnotations)