Skip to content

PDFReporter build integration Desktop & Android

Magnus Karlsson edited this page May 7, 2015 · 2 revisions

Gradle Build Integration

Here is how a developer integrate the PDFReporter library for Android into his project. Just add these lines into the project's "build.gradle" file.

repositories {
    mavenCentral()
    maven {
        url "https://github.com/OpenSoftwareSolutions/mvn-repo/raw/master/repository/"
    }
}
dependencies {
    compile 'com.pdfreporting:pdfreporter-android:1.x.x'
}

Maven Build Integration for Java

In the pom.xml where the java project needs the desktop implementation, put this dependency inside it.

<dependency>
    <groupId>com.pdfreporting</groupId>
    <artifactId>pdfreporter-java-desktop-bundle</artifactId>
    <version>1.x.x</version>
    <scope>provided</scope>
</dependency>

and add this entry to your root pom.xml

<repositories>
    <repository>
        <id>OpenSoftwareSolutionsMvn</id>
        <name>your custom repo</name>
        <url>https://github.com/OpenSoftwareSolutions/mvn-repo/raw/master/repository/</url>
    </repository>
</repositories>

Single Jar

You can choose to use the single jar file from here instead.