Skip to content

Commit dbd15f7

Browse files
Merge pull request #217 from lewismc/ISSUE-216
ISSUE-216 Augment README with dependency management guidance
2 parents b0a3166 + 5856753 commit dbd15f7

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

README.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,43 @@ If you're using the Log4j 2, Simple Logging Facade for Java (SLF4J), or Logback
5151
* For more about about Splunk in general, see
5252
[Splunk>Docs](http://docs.splunk.com/Documentation/Splunk).
5353

54+
## Dependency Management
55+
56+
The `splunk-library-javalogging` artifact can be accessed via Splunk's managed Maven repoitory.
57+
58+
### Apache Maven
59+
60+
First define the repository as follows
61+
62+
```xml
63+
...
64+
<repositories>
65+
<repository>
66+
<id>splunk-artifactory</id>
67+
<name>Splunk Releases</name>
68+
<url>https://splunk.jfrog.io/splunk/ext-releases-local</url>
69+
</repository>
70+
</repositories>
71+
...
72+
```
73+
74+
... then reference the dependency as follows
75+
76+
```xml
77+
...
78+
<dependencies>
79+
<dependency>
80+
<groupId>com.splunk.logging</groupId>
81+
<artifactId>splunk-library-javalogging</artifactId>
82+
<version>${latest.version}</version>
83+
</dependency>
84+
...
85+
</dependencies>
86+
...
87+
```
88+
89+
The above can be adapted to suit Other dependency management implementations as necessary.
90+
5491
## License
5592

5693
Splunk logging for Java is licensed under the Apache License 2.0.

0 commit comments

Comments
 (0)