Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.jstaerk:mustangproject:2.1.1'
}
dependencies {
implementation("com.github.jstaerk:mustangproject:2.1.1")
}
<dependency>
<groupId>com.github.jstaerk</groupId>
<artifactId>mustangproject</artifactId>
<version>2.1.1</version>
</dependency>
libraryDependencies += "com.github.jstaerk" % "mustangproject" % "2.1.1"
:dependencies [[com.github.jstaerk/mustangproject "2.1.1"]]
Source code repository for the Mustang project open source java PDF invoice metadata library in ZUGFeRD format.
These are the recommended dependencies for the project:
You can build the project with:
mvn clean install
This will run the tests, build the project artefacts, and install the artifacts to the local cache. After that the mustang JAR can be used.
More information on how to develop on mustang:
If you set up a Maven project, you can reference the mustang artifact like this:
<dependency>
<groupId>org.mustangproject</groupId>
<artifactId>validator</artifactId>
<version>2.15.0</version>
<classifier>shaded</classifier>
</dependency>
Further docs on how to develop with mustang:
Developer: Jochen Stärk. For questions please contact Jochen at jstaerk [at] usegroup.de
Subject to the Apache-2.0 license.