I am developing a java library, which will be released in maven central. My project depends on few others, the dependencies look something like this:
<dependencies>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.32</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.8.2</version>
<scope>test</scope>
</dependency>
</dependencies>
For the last few days i am hindered by handling the licenses of these dependencies.
SLF4J for example is MIT licensed and the license states - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. How exactly should i include the SLF4J license in the artefacts? Do i even need to include it, considering that normally artefacts don't contain their dependencies?
Similarly i am not sure how to handle test dependencies, do i need to include licenses and agreements for them, considering they are only used during the test stage of builduing asrtefacts?