Splunk SDK for Java now has maven support

Does your project depend on 3rd party jars, like Splunk SDK for Java? Do you use maven, ivy or gradle to build your project? Do you rely on maven or similar tools to fetch all your dependencies behind the scenes so you can build your project seamlessly?

If your answer to these questions is Yes, then we have great news for you. Now you can add our jar as a dependency. For maven, here is how you can update your project’s pom.xml in 2 easy steps. You can make similar changes for ivy as well as gradle.

Step 1. Add the repository.

<repositories>
  ...
  <repository>
    <id>ext-release-local</id>
    <url>http://splunk.artifactoryonline.com/splunk/ext-releases-local</url>
  </repository>
</repositories>

Step 2. Add the dependency.

<dependencies>
  ...
  <dependency>
    <groupId>com.splunk</groupId>
    <artifactId>splunk</artifactId>
    <version>1.1.0</version>
  </dependency>
</dependencies>

And you are done!

Send us feedback at devinfo@splunk.com.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

By clicking "Submit" button below, I hereby certify that I am not (a) a citizen or permanent resident of any country on which the United States has embargoed goods, technology and/or services (e.g., Cuba, Iran, North Korea, Sudan, Syria, or Crimea), and (b) on any of the relevant U.S. Government Lists of prohibited or restricted persons, including but not limited to the Treasury Department's List of Specially Designated Nationals, and the Commerce Department's List of Denied Persons or Entity List, and that my use of Splunk products and services is in compliance with the applicable U.S. export control and economic sanctions laws and regulations. For further information on the export controls and sanctions laws see, http://www.bis.doc.gov/index.htm and http://www.treasury.gov/about/organizational-structure/offices/Pages/Office-of-Foreign-Assets-Control.aspx.