Skip to content

Commit

Permalink
Use first capability of a project in case of multiple when creating b…
Browse files Browse the repository at this point in the history
…undler jars
  • Loading branch information
jpenilla committed May 11, 2024
1 parent d3a5f5f commit 007ef94
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ abstract class CreateBundlerJar : ZippedTask() {
return when (val ident = id.componentIdentifier) {
is ModuleComponentIdentifier -> ModuleId.fromIdentifier(id)
is ProjectComponentIdentifier -> {
val capability = variant.capabilities.single()
val capability = variant.capabilities.first()
val version = capability.version ?: throw PaperweightException("Unknown version for ${capability.group}:${capability.name}")
ModuleId(capability.group, capability.name, version)
}
Expand Down

0 comments on commit 007ef94

Please sign in to comment.