Skip to content

Commit

Permalink
Fix PublishMetadataTest
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtSilvio committed Oct 24, 2024
1 parent f2063d7 commit 69431b9
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ internal class PublishMetadataTest {
}
}
val javaComponent = components["java"] as AdhocComponentWithVariants
javaComponent.addVariantsFromConfiguration(configurations["ociImage"]) {}
configurations.all {
if (name.startsWith("ociImage")) {
javaComponent.addVariantsFromConfiguration(this) {}
}
}
publishing {
publications {
register<MavenPublication>("maven") {
Expand Down Expand Up @@ -107,7 +111,6 @@ 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 Down

0 comments on commit 69431b9

Please sign in to comment.