Maven & Gradle
Para is hosted on Maven Central. To add it to your project just include this into your pom.xml:
<dependency> <groupId>com.erudika</groupId> <artifactId>para-server</artifactId> <version>{VERSION}</version></dependency>implementation("com.erudika:para-server:{VERSION}")For building Para client applications, use the Para client library:
<dependency> <groupId>com.erudika</groupId> <artifactId>para-client</artifactId> <version>{VERSION}</version></dependency>implementation("com.erudika:para-client:{VERSION}")In your own project you can create a new ParaClient instance like so:
ParaClient pc = new ParaClient(accessKey, secretKey);// Para endpoint - http://localhost:8080 or https://paraio.compc.setEndpoint(paraServerURL);// Set this to true if you want ParaClient to throw exceptions on HTTP errorspc.throwExceptionOnHTTPError(false);// send a test request - this should return a JSON object of type 'app'pc.me();JavaDocs and sources
Section titled “JavaDocs and sources”JavaDocs and sources, as well as other Para server artifacts and metadata, are published on Maven Central.