Kontent Java Packages
Monorepo with Java Kontent packages.
Packages
Package | Summary | Version |
---|---|---|
Kontent Delivery Java SDK | The Kentico Kontent Delivery Java SDK is a client library used for retrieving content from Kentico Kontent | |
Kontent Generators | This tool generates strongly-typed models based on Content Types in a Kentico Kontent project. | |
Kontent Sample Spring Boot app | Showcase of the Spring boot application displaying data from Kontent. | source |
Kontent Sample Gradle Console app | Simple Java console application showcasing how to load data from Kontent. | source |
Kontent Sample Android app (Java) | Showcase of the Android application written in Java using RxJava for data fetching from Kontent. | source |
Kontent Sample Android app (Kotlin) | Showcase of the Android application written in Kotlin using Kotlin Coroutines for data fetching from Kontent. | source |
Development
If you wish to find out more about the project specification. Check out the Project information.
Prerequisites
Required: Java 8 SDK (Oracle & OpenJDK both tested and supported)
Build and Test
-
Ensure your
JAVA_HOME
environment is set. -
Clone this repository
git clone https://github.com/Kentico/kontent-java-packages
-
Enter the cloned repository and build the project via the provided Gradle wrapper.
To grant execution rights for
gradlew
binary, you could usechmod a+x ./gradlew
which allows execution to everybody.cd kontent-java-packages ./gradlew clean build
The command will build whole solution and run all tests in this monorepo.
๐ก
Next steps
The ideal next step is to test out the Kontent Sample Spring Boot app or load the project in In IDE (IntelliJ IDEA recommended) and run/debug tests in Kontent Delivery Java SDK.
Publishing
If you want to publish the new version, you need to have an access to Bintray's Kentico organization.
- Copy the
local.properties.template
file in this directory tolocal.properties
(which will be idnored by Git)). - Set each variable on
local.properties
from the password manager, or contact @Kentico/developer-relations team to get them. - Set version you want to publish in
build.gradle
. - Build the solution
./gradlew build
. - Run
./gradlew bintrayUpload
.