Skip to content

Commit 9d8f18f

Browse files
committed
more
1 parent 5a80c16 commit 9d8f18f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

devtools/gradle/gradle-model/src/main/java/io/quarkus/gradle/dependency/ConditionalDependencyResolver.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,12 @@ private void addConditionalDependencyVariant(ComponentMetadataDetails compDetail
139139
quarkusDepAttr.getName(),
140140
baseVariant,
141141
variant -> {
142-
variant.attributes(this::selectConditionalAttribute);
142+
final AtomicInteger selectCounter = new AtomicInteger();
143+
variant.attributes(attrs -> {
144+
if (selectCounter.getAndIncrement() == 0) {
145+
selectConditionalAttribute(attrs);
146+
}
147+
});
143148
variant.withDependencies(directDeps -> {
144149
boolean alreadyAdded = false;
145150
for (var directDep : directDeps) {

0 commit comments

Comments
 (0)