Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/platform variants #15

Merged
merged 147 commits into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
147 commits
Select commit Hold shift + click to select a range
d929639
Cleanup OciRegistriesImpl
SgtSilvio Jun 18, 2024
f2654de
WIP variants for each platform
SgtSilvio Jun 22, 2024
f985717
WIP variants for each platform
SgtSilvio Jun 23, 2024
7b73c14
WIP variants for each platform
SgtSilvio Jun 23, 2024
6506475
WIP variants for each platform
SgtSilvio Jun 23, 2024
60ebf77
WIP variants for each platform
SgtSilvio Jun 23, 2024
70b0ed4
WIP variants for each platform
SgtSilvio Jun 23, 2024
0fb6928
WIP variants for each platform
SgtSilvio Jun 30, 2024
4c3ac04
WIP variants for each platform
SgtSilvio Jun 30, 2024
b446bbd
WIP variants for each platform
SgtSilvio Jun 30, 2024
13221ca
WIP variants for each platform
SgtSilvio Jul 1, 2024
e776207
WIP variants for each platform
SgtSilvio Jul 2, 2024
a559f16
WIP variants for each platform
SgtSilvio Jul 2, 2024
cf7444c
WIP variants for each platform
SgtSilvio Jul 2, 2024
eaecfd0
WIP variants for each platform
SgtSilvio Jul 2, 2024
af7eeb1
WIP variants for each platform
SgtSilvio Jul 2, 2024
68bbe92
WIP variants for each platform
SgtSilvio Jul 3, 2024
9316992
WIP variants for each platform
SgtSilvio Jul 3, 2024
1d7e770
WIP variants for each platform
SgtSilvio Jul 3, 2024
b1136eb
WIP variants for each platform
SgtSilvio Jul 3, 2024
c61b031
WIP variants for each platform
SgtSilvio Jul 3, 2024
f9b11ac
WIP variants for each platform
SgtSilvio Jul 3, 2024
d262fec
WIP variants for each platform
SgtSilvio Jul 3, 2024
c25deb7
WIP variants for each platform
SgtSilvio Jul 3, 2024
6777130
WIP variants for each platform
SgtSilvio Jul 3, 2024
979ddf7
WIP variants for each platform
SgtSilvio Jul 3, 2024
509d79a
WIP variants for each platform
SgtSilvio Jul 4, 2024
edc9bec
WIP variants for each platform
SgtSilvio Jul 4, 2024
29087fb
WIP variants for each platform
SgtSilvio Jul 4, 2024
b2c6fe2
WIP variants for each platform
SgtSilvio Jul 4, 2024
35141aa
WIP variants for each platform
SgtSilvio Jul 4, 2024
bb5f9f3
WIP variants for each platform
SgtSilvio Jul 4, 2024
d864755
WIP variants for each platform
SgtSilvio Jul 4, 2024
8d1c7be
WIP variants for each platform
SgtSilvio Jul 5, 2024
207b72f
WIP variants for each platform
SgtSilvio Jul 5, 2024
06fd9a6
WIP variants for each platform
SgtSilvio Jul 5, 2024
1891d4c
WIP variants for each platform
SgtSilvio Jul 5, 2024
709bea5
WIP variants for each platform
SgtSilvio Jul 5, 2024
27123d4
WIP variants for each platform
SgtSilvio Jul 5, 2024
2cfd0d5
WIP variants for each platform
SgtSilvio Jul 5, 2024
1e2d877
WIP variants for each platform
SgtSilvio Jul 5, 2024
6962ad8
WIP variants for each platform
SgtSilvio Jul 5, 2024
5814814
WIP variants for each platform
SgtSilvio Jul 5, 2024
6ac8169
WIP variants for each platform
SgtSilvio Jul 6, 2024
bd02bad
WIP variants for each platform
SgtSilvio Jul 6, 2024
2a8d6b5
WIP variants for each platform
SgtSilvio Jul 6, 2024
e1475a3
WIP variants for each platform
SgtSilvio Jul 6, 2024
807bb3f
WIP variants for each platform
SgtSilvio Jul 6, 2024
7ed0c1b
WIP variants for each platform
SgtSilvio Jul 6, 2024
d66c036
WIP variants for each platform
SgtSilvio Jul 6, 2024
a657fb3
WIP variants for each platform
SgtSilvio Jul 6, 2024
c62e8bf
WIP variants for each platform
SgtSilvio Jul 6, 2024
0ff7307
WIP variants for each platform
SgtSilvio Jul 7, 2024
287c6fe
WIP variants for each platform
SgtSilvio Jul 8, 2024
e1cf9a2
WIP variants for each platform
SgtSilvio Jul 8, 2024
3e41f48
WIP variants for each platform
SgtSilvio Jul 8, 2024
eee0398
WIP variants for each platform
SgtSilvio Jul 8, 2024
33ab325
WIP variants for each platform
SgtSilvio Jul 8, 2024
f75e13d
WIP variants for each platform
SgtSilvio Jul 8, 2024
2aa29ab
WIP variants for each platform
SgtSilvio Jul 8, 2024
e4e1242
Reduce bytecode size: avoid generated classes for lambdas with apply{}
SgtSilvio Jul 8, 2024
c977831
Reduce bytecode size: add DependencyFactories.kt
SgtSilvio Jul 8, 2024
0dd23c9
Reduce bytecode size: avoid generated classes for lambdas
SgtSilvio Jul 8, 2024
6716fc6
WIP variants for each platform
SgtSilvio Jul 8, 2024
92365bc
Reduce bytecode size: avoid generated class for getByType<>
SgtSilvio Jul 8, 2024
256af4a
WIP variants for each platform
SgtSilvio Jul 9, 2024
12a14fe
WIP variants for each platform
SgtSilvio Jul 9, 2024
6d77915
WIP variants for each platform
SgtSilvio Jul 9, 2024
ba01174
Replace unnecessary SortedMap -> Map
SgtSilvio Jul 9, 2024
84309ec
Remove OciMetadata.Command
SgtSilvio Jul 9, 2024
294e6fd
Remove OciMetadata.Command > fix functional tests
SgtSilvio Jul 9, 2024
5acb8a3
Move OciMetadata(Builder/JsonCodec) to metadata package
SgtSilvio Jul 9, 2024
39a4b8d
Move docker media types to OciMediaTypes.kt
SgtSilvio Jul 9, 2024
e54ec98
Make PlatformSet internal
SgtSilvio Jul 9, 2024
2debb9b
Cleanup PlatformImpl.toString
SgtSilvio Jul 9, 2024
2690dc2
Move OciImageSpecResolution, ArtifactViewComponentFilter, PlatformSet…
SgtSilvio Jul 9, 2024
ae7435b
Rename OciCopySpecProcessor.kt -> OciCopySpecProcessing.kt
SgtSilvio Jul 9, 2024
0bc4eee
Make (Versioned)Coordinates internal and move to mapping package
SgtSilvio Jul 9, 2024
e990756
Move StringCasing/Escaping.kt to internal.string package
SgtSilvio Jul 9, 2024
b6ff685
Move createConfig/Manifest/Index to OciMetadataFiles.kt
SgtSilvio Jul 10, 2024
2d2bb5c
Cleanup OciMetadataFiles.kt
SgtSilvio Jul 10, 2024
6194dd8
Rename ArtifactViewComponentFilter -> ArtifactViewVariantFilter and m…
SgtSilvio Jul 10, 2024
585e52c
Move ArtifactViewVariantFilter to gradle package
SgtSilvio Jul 10, 2024
2c62a39
Move ResolvableOciImageDependenciesImpl.asInput to OciImagesInputReso…
SgtSilvio Jul 10, 2024
141ebb4
Cleanup OciMetadataRegistry
SgtSilvio Jul 10, 2024
fb4c195
Add OciDigestAlgorithm parameter to OciDataDescriptor
SgtSilvio Jul 10, 2024
d702db5
Add OciData
SgtSilvio Jul 10, 2024
5889d2e
Cleanup OciPushTask
SgtSilvio Jul 10, 2024
cfcd051
Cleanup OciPushTask
SgtSilvio Jul 10, 2024
4494735
Cleanup OciImageDefinitionImpl
SgtSilvio Jul 10, 2024
1fa7d43
Cleanup OciImageDefinitionImpl
SgtSilvio Jul 10, 2024
3466207
Rename DependencyFactories.kt -> DependencyExtensions.kt
SgtSilvio Jul 10, 2024
cb7eaae
Cleanup OciImageDefinitionImpl
SgtSilvio Jul 11, 2024
f4afd6d
Remove Serializable from OciImages/Image/VariantInput
SgtSilvio Jul 11, 2024
0cb42b9
Remove OciImagesInput, OciImageInput directly references OciVariantIn…
SgtSilvio Jul 11, 2024
8efb89d
Avoid duplicate variant processing in OciImagesInputTask
SgtSilvio Jul 11, 2024
05a033f
Cleanup OciImagesInputTask.kt and OciImagesInputResolution.kt
SgtSilvio Jul 11, 2024
feade31
Rename OciImagesInputResolution.kt -> OciImageInputResolution.kt
SgtSilvio Jul 11, 2024
12d603c
Remove ResolvableOciImageDependencies.asInput
SgtSilvio Jul 11, 2024
67ffebc
Cleanup comments in OciImageInputResolution.kt
SgtSilvio Jul 11, 2024
35ac915
Refactor OciImagesInputTask.run into smaller functions
SgtSilvio Jul 11, 2024
f1d99d5
Add variants.isNotEmpty check in OciImageInput
SgtSilvio Jul 11, 2024
37f8c63
Refactor OciImagesInputTask.run into smaller functions
SgtSilvio Jul 12, 2024
09833b9
Move OciImageReferenceSpec and related functions to own file
SgtSilvio Jul 12, 2024
f9ab731
Split OciRepositoryHandler.getOrHeadGradleModuleMetadata into smaller…
SgtSilvio Jul 12, 2024
fc710d1
Fix OciRepositoryHandler.getOrHeadMetadata:
SgtSilvio Jul 13, 2024
e14069a
Rename OciMetadataRegistry -> OciImageMetadataRegistry
SgtSilvio Jul 13, 2024
e7d7fe5
Replace variable/parameter name variantName -> imageDefName
SgtSilvio Jul 13, 2024
fcbbc7b
Improve readability of OciRepositoryHandler.getOrHeadGradleModuleMeta…
SgtSilvio Jul 14, 2024
9211612
Move OciMetadata.Layer -> OciLayerMetadata
SgtSilvio Jul 14, 2024
59a1cf4
Improve layer handling in OciImageMetadataRegistry.transformManifestT…
SgtSilvio Jul 14, 2024
b549595
Remove data modifier from OciDescriptorImpl, OciLayerDescriptor, OciL…
SgtSilvio Jul 14, 2024
2692277
Remove wrong filtering of layers in OciRepositoryHandler.getOrHeadGra…
SgtSilvio Jul 14, 2024
3b170ca
Remove unnecessary Serializable declarations
SgtSilvio Jul 14, 2024
a224071
Rename OciMetadata(Task) -> OciVariantMetadata(Task)
SgtSilvio Jul 14, 2024
220317e
Cleanup OciNaming.kt
SgtSilvio Jul 14, 2024
fc00bb3
Add comments about inheritance of values to OciVariantMetadata
SgtSilvio Jul 14, 2024
2377696
Revert "Rename OciMetadata(Task) -> OciVariantMetadata(Task)"
SgtSilvio Jul 15, 2024
8fbc98e
Rename OciImageMetadataRegistry.OciImageMetadata -> OciMultiArchImage…
SgtSilvio Jul 15, 2024
9a99444
Rename MappedComponent.Variant -> Feature
SgtSilvio Jul 16, 2024
417fc38
Handle empty Mono results in OciRepositoryHandler.getOrHeadGradleModu…
SgtSilvio Jul 16, 2024
3aa151f
Improve path segment escaping in OciRepositoryHandler:
SgtSilvio Jul 16, 2024
47b419d
Cleanup function order in OciRepositoryHandler
SgtSilvio Jul 16, 2024
d6c2cba
Renamed MappedComponent -> OciImageComponent
SgtSilvio Jul 16, 2024
96e0ee3
Move OciMultiArchImageMetadata out of nested
SgtSilvio Jul 16, 2024
8803c23
Rename OciImagesInputTask -> OciImagesTask
SgtSilvio Jul 16, 2024
4b05f0d
Rename OciImagesTask.imageInputs -> images
SgtSilvio Jul 16, 2024
e76ed52
Add variants.isNotEmpty check to OciImage
SgtSilvio Jul 16, 2024
31b1f3b
Rename MultiArch -> MultiPlatform
SgtSilvio Jul 16, 2024
f7c4051
Rename MULTIPLE_PLATFORMS_ATTRIBUTE_VALUE=multiple -> MULTI_PLATFORM_…
SgtSilvio Jul 16, 2024
a72eab8
Cleanup OciImageDependenciesImpl
SgtSilvio Jul 16, 2024
a7d05b1
Use URI instead of String for registryUrl in OciRegistryApi
SgtSilvio Jul 16, 2024
f0f9021
Rename registry -> registryUrl in OciRegistryApi
SgtSilvio Jul 16, 2024
96afa50
Rename OciImageDefinition.Bundle(Scope) -> Variant(Scope)
SgtSilvio Jul 16, 2024
e198614
Change OciImagesTask.run internal -> protected
SgtSilvio Jul 16, 2024
b17ed1f
Move OciImage/VariantInput -> OciImagesTask.Image/VariantInput
SgtSilvio Jul 16, 2024
42ee11d
Improve order in OciImagesTask
SgtSilvio Jul 16, 2024
d931cdc
Revert workaround for https://github.com/gradle/plugin-portal-request…
SgtSilvio Jul 17, 2024
e354751
Add docker-image tag
SgtSilvio Jul 17, 2024
38b544b
Add PlatformSelector
SgtSilvio Jul 17, 2024
fe44a45
Cleanup OciImageReferenceSpec.kt
SgtSilvio Jul 18, 2024
498249e
Cleanup OciImageInputResolution.kt
SgtSilvio Jul 18, 2024
9c2bd5f
Cleanup OciImageInput/SpecResolution.kt
SgtSilvio Jul 18, 2024
66f3281
Cleanup OciRepositoryHandler
SgtSilvio Jul 18, 2024
396138e
Rename OCI_IMAGE_REFERENCE_ATTRIBUTE -> OCI_IMAGE_REFERENCE_SPECS_ATT…
SgtSilvio Jul 18, 2024
b5f14f8
Rename ResolvableOciImageDependenciesImpl.ReferenceSpecBuilder -> Ref…
SgtSilvio Jul 18, 2024
8ae62d6
Cleanup OciImagesTask
SgtSilvio Jul 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ metadata {
}
}
github {
org = "sgtsilvio"
org = "SgtSilvio"
issues()
}
}
Expand Down Expand Up @@ -56,7 +56,7 @@ gradlePlugin {
create("oci") {
id = "$group.$name"
implementationClass = "$group.$name.OciPlugin"
tags = listOf("oci", "oci-image", "docker", "multi-arch")
tags = listOf("oci", "oci-image", "docker", "docker-image", "multi-arch")
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ internal class ConfigurationCacheTest {
assertTrue(result.output.contains("Configuration cache entry stored"))
assertEquals(TaskOutcome.SUCCESS, result.task(":jar")?.outcome)
assertEquals(TaskOutcome.SUCCESS, result.task(":jarOciLayer")?.outcome)
assertEquals(TaskOutcome.SUCCESS, result.task(":ociComponent")?.outcome)
assertEquals(TaskOutcome.SUCCESS, result.task(":ociMetadata")?.outcome)
assertEquals(TaskOutcome.SUCCESS, result.task(":testOciRegistryData")?.outcome)
assertEquals(TaskOutcome.SUCCESS, result.task(":test")?.outcome)
testProject.assertJarOciLayer()
testProject.assertOciComponent()
testProject.assertOciMetadata()
testProject.assertTestOciRegistryData()

testProject.buildDir.deleteRecursively()
Expand All @@ -44,11 +44,11 @@ internal class ConfigurationCacheTest {
assertTrue(result2.output.contains("Configuration cache entry reused"))
assertEquals(TaskOutcome.SUCCESS, result2.task(":jar")?.outcome)
assertEquals(TaskOutcome.SUCCESS, result2.task(":jarOciLayer")?.outcome)
assertEquals(TaskOutcome.SUCCESS, result2.task(":ociComponent")?.outcome)
assertEquals(TaskOutcome.SUCCESS, result2.task(":ociMetadata")?.outcome)
assertEquals(TaskOutcome.SUCCESS, result2.task(":testOciRegistryData")?.outcome)
assertEquals(TaskOutcome.SUCCESS, result2.task(":test")?.outcome)
testProject.assertJarOciLayer()
testProject.assertOciComponent()
testProject.assertOciMetadata()
testProject.assertTestOciRegistryData()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ internal class GradleVersionsTest {
@ValueSource(
strings = [
"7.4", // minimum version
"8.3", // highest version not fulfilling version check >= 8.4 in ModuleDependencyExtensions
"8.4", // lowest version fulfilling version check >= 8.4 in ModuleDependencyExtensions
"8.5", // lowest version fulfilling version check >= 8.5 in ModuleDependencyExtensions
"8.5", // highest version not fulfilling version check >= 8.6 in OciImageDefinitionImpl
"8.6", // lowest version fulfilling version check >= 8.6 in OciImageDefinitionImpl
]
)
fun test(gradleVersion: String, @TempDir projectDir: File) {
Expand All @@ -34,12 +33,12 @@ internal class GradleVersionsTest {

assertEquals(TaskOutcome.SUCCESS, result.task(":jar")?.outcome)
assertEquals(TaskOutcome.SUCCESS, result.task(":jarOciLayer")?.outcome)
assertEquals(TaskOutcome.SUCCESS, result.task(":ociComponent")?.outcome)
assertEquals(TaskOutcome.SUCCESS, result.task(":ociMetadata")?.outcome)
assertEquals(TaskOutcome.SUCCESS, result.task(":testOciRegistryData")?.outcome)
assertEquals(TaskOutcome.SUCCESS, result.task(":test")?.outcome)
val isBeforeGradle8 = gradleVersion.startsWith('7')
testProject.assertJarOciLayer(isBeforeGradle8)
testProject.assertOciComponent(isBeforeGradle8)
testProject.assertOciMetadata(isBeforeGradle8)
testProject.assertTestOciRegistryData(isBeforeGradle8)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ internal class PublishMetadataTest {

assertEquals(TaskOutcome.SUCCESS, result.task(":jar")?.outcome)
assertEquals(TaskOutcome.SUCCESS, result.task(":jarOciLayer")?.outcome)
assertEquals(TaskOutcome.SUCCESS, result.task(":ociComponent")?.outcome)
assertEquals(TaskOutcome.SUCCESS, result.task(":ociMetadata")?.outcome)
assertEquals(TaskOutcome.SUCCESS, result.task(":generateMetadataFileForMavenPublication")?.outcome)

val moduleMetadata = JSONObject(projectDir.resolve("build/publications/maven/module.json").readText())
Expand All @@ -107,6 +107,7 @@ internal class PublishMetadataTest {
"name": "ociImage",
"attributes": {
"io.github.sgtsilvio.gradle.distributiontype": "oci-image",
"io.github.sgtsilvio.gradle.platform": "universal",
"org.gradle.category": "distribution",
"org.gradle.dependency.bundling": "external"
},
Expand All @@ -119,13 +120,13 @@ internal class PublishMetadataTest {
],
"files": [
{
"name": "test-1.0.0-oci-component.json",
"url": "test-1.0.0-oci-component.json",
"size": 492,
"sha512": "913ce805f2573fa3c291a04dc20fe0bbc2fd80b30a274671f3bf4fb20daa9025ec6a3828ddff4b57b2a5e2c4388e2d8779057f542643bf0a288f82551064a37c",
"sha256": "aac0e2ec54b8570aa5319d97e89f43e3bace4b702aeab7553113935489e66c0f",
"sha1": "5237ea4b551f2331dc7a38194cc690014ff0d33e",
"md5": "5ac361c1c364157050ea3d060355bf47"
"name": "test-1.0.0-oci-metadata.json",
"url": "test-1.0.0-oci-metadata.json",
"size": 313,
"sha512": "746de5c093ac73f3b6b693f0d2e03c608d54d341eeaa57176b6b5f24653dc277b2f65cdb2912b9abdeaec49092265c0faf4aba44b9c152e7015a8a7719fd9ac9",
"sha256": "3ad109eb16bdf9819d61d2e6a279041de00f063689726491d1325a58249efa90",
"sha1": "21ed0e46e81711a45f1788274e1da164a42d9e94",
"md5": "e6e8f26fe56934656689bc03eef083e1"
},
{
"name": "test-1.0.0-jar-oci-layer.tgz",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,17 +124,17 @@ internal class TestProject(projectDir: File) {
assertEquals("digest=$expectedDigest\nsize=704\ndiffId=$expectedDiffId", propertiesFile.readText())
}

fun assertOciComponent(isBeforeGradle8: Boolean = false) {
fun assertOciMetadata(isBeforeGradle8: Boolean = false) {
val imageDir = buildDir.resolve("oci/images/main")
val componentJsonFile = imageDir.resolve("oci-component.json")
assertTrue(componentJsonFile.exists())
val metadataJsonFile = imageDir.resolve("oci-metadata.json")
assertTrue(metadataJsonFile.exists())
// https://docs.gradle.org/current/userguide/upgrading_version_7.html#reproducible_archives_can_change_compared_to_past_versions
val expectedComponentJson = if (isBeforeGradle8) {
"""{"imageReference":"example/test:1.0.0","capabilities":[{"group":"org.example","name":"test","version":"1.0.0"}],"bundle":{"parentCapabilities":[{"group":"library","name":"eclipse-temurin"}],"command":{"entryPoint":["java","-jar","app.jar"],"arguments":[]},"layers":[{"descriptor":{"digest":"sha256:9f0241cf6e0f2ddad911248fbb4592b18c4dff4d69e1dffa03080acfe61bce6c","size":704,"diffId":"sha256:f8363558d917871ea6722c762b6d4e67b0f2ac3be010ca94e4a74aead327212c"},"createdBy":"gradle-oci: jar"}]}}"""
"""{"imageReference":"example/test:1.0.0","entryPoint":["java","-jar","app.jar"],"layers":[{"descriptor":{"digest":"sha256:9f0241cf6e0f2ddad911248fbb4592b18c4dff4d69e1dffa03080acfe61bce6c","size":704,"diffId":"sha256:f8363558d917871ea6722c762b6d4e67b0f2ac3be010ca94e4a74aead327212c"},"createdBy":"gradle-oci: jar"}]}"""
} else {
"""{"imageReference":"example/test:1.0.0","capabilities":[{"group":"org.example","name":"test","version":"1.0.0"}],"bundle":{"parentCapabilities":[{"group":"library","name":"eclipse-temurin"}],"command":{"entryPoint":["java","-jar","app.jar"],"arguments":[]},"layers":[{"descriptor":{"digest":"sha256:e6b88907d77d29e5dd75183b8c58e75d6abe195d0594c4b8b2282c4ce75a51f0","size":704,"diffId":"sha256:bf7023a316aaf2ae2ccd50dba4990f460cfbbd2b70ee08603c2e5452e48e0865"},"createdBy":"gradle-oci: jar"}]}}"""
"""{"imageReference":"example/test:1.0.0","entryPoint":["java","-jar","app.jar"],"layers":[{"descriptor":{"digest":"sha256:e6b88907d77d29e5dd75183b8c58e75d6abe195d0594c4b8b2282c4ce75a51f0","size":704,"diffId":"sha256:bf7023a316aaf2ae2ccd50dba4990f460cfbbd2b70ee08603c2e5452e48e0865"},"createdBy":"gradle-oci: jar"}]}"""
}
assertEquals(expectedComponentJson, componentJsonFile.readText())
assertEquals(expectedComponentJson, metadataJsonFile.readText())
}

fun assertTestOciRegistryData(isBeforeGradle8: Boolean = false) {
Expand All @@ -147,14 +147,14 @@ internal class TestProject(projectDir: File) {
// https://docs.gradle.org/current/userguide/upgrading_version_7.html#reproducible_archives_can_change_compared_to_past_versions
if (isBeforeGradle8) {
expectedJarLayerDigest = "9f0241cf6e0f2ddad911248fbb4592b18c4dff4d69e1dffa03080acfe61bce6c"
expectedIndexDigest = "581c698db9bf7fc21809df9290c06687a1d40f7d6e22338fd544fe7cfc2c2ff2"
expectedIndexDigest = "63a0222f933874cb9a447957959f2e5dcc76f25580096f3dae7c06118d8dc198"
expectedManifest1Digest = "37bf3695f5995dd5ec95ea0583a3fd53c543962fc4372993f7a6d39055e9ed16"
expectedManifest2Digest = "61cedfd321a6a234f0cfb0c97506497af54405de24e7d63f3b3cd61fffdaacec"
expectedConfig1Digest = "383b193872227cbe7e5f85742c3b3d5e9fe2f1db99b25d007d9d2d8b5ed4f6ef"
expectedConfig2Digest = "c880e34f4fba15aa3ae99e494c1d73db3dba8d09abdeec1102a641ad377451d6"
} else {
expectedJarLayerDigest = "e6b88907d77d29e5dd75183b8c58e75d6abe195d0594c4b8b2282c4ce75a51f0"
expectedIndexDigest = "7f7843c962a8235352e0e11d331e6621a20634774d2e209f7f89a7b76e7857bc"
expectedIndexDigest = "524b2ffa869104df9d18697019ef0633ee3ce168ef3b7421b51f9628ac2b0809"
expectedManifest1Digest = "10be4956d8ab1abc455e9a9260b67dcd2d6ca8febd42ea6049bab950a8a15edb"
expectedManifest2Digest = "acd15ae115f4d1562c0ce83e8a628243c7b1130d90677b99ad9d29c95af39e0e"
expectedConfig1Digest = "45c5e3d4ddbbd0b23a157b296cf09827dcd5b2bdb3323c58280948bd6955f8af"
Expand Down
Loading