Skip to content

Commit

Permalink
WIP variants for each platform
Browse files Browse the repository at this point in the history
- Reduce visibility to internal as possible
  • Loading branch information
SgtSilvio committed Jul 9, 2024
1 parent 66d56cd commit 9763db0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ package io.github.sgtsilvio.gradle.oci.attributes

import org.gradle.api.attributes.Attribute

val OCI_IMAGE_REFERENCE_ATTRIBUTE: Attribute<String> =
internal val OCI_IMAGE_REFERENCE_ATTRIBUTE: Attribute<String> =
Attribute.of("io.github.sgtsilvio.gradle.oci.image.reference", String::class.java)
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ val PLATFORM_ATTRIBUTE: Attribute<String> = Attribute.of("io.github.sgtsilvio.gr
const val UNIVERSAL_PLATFORM_ATTRIBUTE_VALUE = "universal"
const val MULTIPLE_PLATFORMS_ATTRIBUTE_VALUE = "multiple"

class PlatformAttributeCompatibilityRule : AttributeCompatibilityRule<String> {
internal class PlatformAttributeCompatibilityRule : AttributeCompatibilityRule<String> {
override fun execute(details: CompatibilityCheckDetails<String>) {
if (details.producerValue == UNIVERSAL_PLATFORM_ATTRIBUTE_VALUE) {
details.compatible()
Expand Down

0 comments on commit 9763db0

Please sign in to comment.