Skip to content

Commit

Permalink
resolve missing versionCatalogElements variant in Gradle metadata files
Browse files Browse the repository at this point in the history
  • Loading branch information
elect86 committed Jun 24, 2024
1 parent 3114ce8 commit 7422935
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion gradle-scijava/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ plugins {
// id("org.gradlex.logging-capabilities") // logging extension
}

layout.buildDirectory.set(layout.projectDirectory.asFile.parentFile.resolve("target/gradle"))
layout.buildDirectory = layout.projectDirectory.asFile.parentFile.resolve("target/gradle")

group = "org.scijava"
version = "0.13" //(effXml / "version").toString()
Expand Down Expand Up @@ -100,10 +100,17 @@ publishing {
}
create<MavenPublication>("pomScijava") {
from(components["javaPlatform"])
// from(components["versionCatalog"])
}
}
}

val versionCatalogElements by configurations
val javaPlatform by components.existing {
this as AdhocComponentWithVariants
addVariantsFromConfiguration(versionCatalogElements) {}
}

tasks {
// dependsOn runs only if the src is successful, finalizedBy not
generateCatalogAsToml { dependsOn(computeCatalogAndPlatform) }
Expand Down

0 comments on commit 7422935

Please sign in to comment.