Common utility methods and classes.
Determine the latest version of the commons in Maven Central.
Add a dependency to your pom:
<dependency>
<groupId>com.arpnetworking.commons</groupId>
<artifactId>commons</artifactId>
<version>VERSION</version>
</dependency>
The Maven Central repository is included by default.
Add a dependency to your build.gradle:
compile group: 'com.arpnetworking.commons', name: 'commons', version: 'VERSION'
Add the Maven Central Repository into your build.gradle:
repositories {
mavenCentral()
}
Add a dependency to your project/Build.scala:
val appDependencies = Seq(
"com.arpnetworking.commons" % "commons" % "VERSION"
)
The Maven Central repository is included by default.
The project does not declare any non-essential transitive dependencies. For example, it does declare a dependency on SLF4J; however, most other dependencies are marked as provided and should be declared by users of the library. This allows clients to declare only the dependencies of the features that they use, instead of automatically inheriting all dependencies of commons. Each component documents its dependencies and the version defined in the pom for testing should be considered the minimum version of each dependency. As the library grows we may consider splitting it into a multi-module project with each submodule explicitly declaring its dependencies.
Prerequisites:
Building:
commons> ./mvnw verify
To use the local version you must first install it locally:
commons> ./mvnw install
You can determine the version of the local build from the pom file. Using the local version is intended only for testing or development.
You may also need to add the local repository to your build in order to pick-up the local version:
- Maven - Included by default.
- Gradle - Add mavenLocal() to build.gradle in the repositories block.
- SBT - Add resolvers += Resolver.mavenLocal into project/plugins.sbt.
Published under Apache Software License 2.0, see LICENSE
© Groupon Inc., 2015