Clone
Jendrik Johannes
committed
on 15 Dec 17
Add scope to maven dependency key
Different versions could be defined for compile/runtime scope in
the dependency management block.

This is… Show more
Add scope to maven dependency key

Different versions could be defined for compile/runtime scope in

the dependency management block.

This is for example how Gradle publishes dependency constraints

to <dependencyManagement> for the same dependency with different

versions in a Java Library:

 <dependencyManagement>

   <dependencies>

     <dependency>

       <groupId>org.test</groupId>

       <artifactId>bar</artifactId>

       <version>1.0</version>

       <scope>compile</scope>

     </dependency>

     <dependency>

       <groupId>org.test</groupId>

       <artifactId>bar</artifactId>

       <version>1.1</version>

       <scope>runtime</scope>

     </dependency>

   </dependencies>

 </dependencyManagement>

Signed-off-by: Jendrik Johannes <jendrik@gradle.com>

Show less

master + 511 more