Skip to content

Commit

Permalink
docs: explain how to specify classifiers on dependencies (#1775)
Browse files Browse the repository at this point in the history
  • Loading branch information
jponge authored Mar 31, 2024
1 parent cc1b285 commit c494420
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/modules/ROOT/pages/dependencies.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,26 @@ $ ./classpath_example.java
1 [main] INFO classpath_example - Hello from Java!
----

[TIP]
====
Dependency classifiers shall be put _after_ the version number:
```java
//DEPS io.netty:netty-transport-native-kqueue:4.1.107.Final:osx-aarch_64
```
is the equivalent of the following Maven dependency declaration:
```xml
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-transport-native-kqueue</artifactId>
<version>4.1.107.Final</version>
<classifier>osx-aarch_64</classifier>
</dependency>
```
====

== Managed dependencies ("BOM POM"'s) [Experimental]

When using libraries and frameworks it can get tedious to mange and update multiple versions.
Expand Down

0 comments on commit c494420

Please sign in to comment.