spring-gradle-plugins / dependency-management-plugin

A Gradle plugin that provides Maven-like dependency management functionality
697 stars 87 forks source link

Add an example of resolving a dependency with a classifier. #397

Closed dsyer closed 1 month ago

dsyer commented 1 month ago

This works:

dependencies {
      ...
      testRuntimeOnly "io.netty:netty-transport-native-epoll::linux-x86_64"
}

and apparently it is standard notation for Gradle, but I couldn't find any examples anywhere, so we could add one here and that would make users of this plugin aware at least.

wilkinsona commented 1 month ago

I'd like to see if the Gradle docs could be improved (as the syntax above isn't specific to this plugin) before documenting it here.

wilkinsona commented 1 month ago

Another alternative is:

dependencies {
      testRuntimeOnly(group = "io.netty", name = "netty-transport", classifier = "linux-x86_64")
}

The Gradle team are going to update their docs so I'll close this one. Hopefully this issue will prove helpful in the meantime.