Quantcast
Channel: Gradle Forums - Latest posts
Viewing all articles
Browse latest Browse all 19859

Use dependency version from platform outside the dependencies clause

$
0
0

HI,
I’m using the gradle platform plugin; I have a BOM project that declares version constraints, and an App project that gets version recommendations from the BOM project. while this works great for the dependencies clause, I’m not sure if I can get the same recommendations outside of it. for example, I also have the following protobuf clause:

protobuf {
  protoc {
    artifact = "com.google.protobuf:protoc:3.11.3"
  }

  plugins {
    grpc {
      artifact = "io.grpc:protoc-gen-grpc-java:1.27.0"
    }
  }
}

is it possible to omit the version numbers and instead take them from the BOM?

thanks!


Viewing all articles
Browse latest Browse all 19859

Trending Articles