This file contains information useful for contributing to the Krenalis Java SDK.
-
Run the tests
-
Apply code formatting:
mvn spotless:apply
To test the SDK:
-
Make sure the Java Development Kit (JDK) and Maven are installed. Install JDK. Install Maven.
-
Run the tests from the root of the repository:
mvn clean test
To run the sample application:
-
Make sure the Java Development Kit (JDK) and Maven are installed. Install JDK. Install Maven.
-
In
Main.java, set theWRITE_KEYandENDPOINTconstants using values from a Krenalis Java source. -
Build the application:
mvn clean package -
Run the application, replacing the
[VERSION]placeholder with the current version of the SDK:java -jar analytics-sample/target/analytics-sample-[VERSION]-jar-with-dependencies.jar -
You should see new logged events in the event debugger of the Krenalis Java source.