Skip to content

Commit

Permalink
build: enable consistent resolution also for the protobuf paths
Browse files Browse the repository at this point in the history
This is not done automatically be the
jvmDependencyConflicts.consistentResolution {}
mechanism we use by now.
It only configures this for the standard classpaths.

Signed-off-by: Jendrik Johannes <jendrik.johannes@gmail.com>
  • Loading branch information
jjohannes committed Nov 20, 2024
1 parent c7a0ee3 commit 9be88e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/kotlin/org.hiero.gradle.feature.protobuf.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ protobuf {

configurations.configureEach {
if (name.startsWith("protobufToolsLocator") || name.endsWith("ProtoPath")) {
@Suppress("UnstableApiUsage")
shouldResolveConsistentlyWith(configurations.getByName("mainRuntimeClasspath"))
attributes { attribute(Usage.USAGE_ATTRIBUTE, objects.named(Usage.JAVA_API)) }
exclude(group = project.group.toString(), module = project.name)
withDependencies {
Expand Down

0 comments on commit 9be88e3

Please sign in to comment.