Skip to main content

Getting Started

The best way to use JaKtA is in a Kotlin project, so that you can benefit from its declarative DSL.

Prerequisites

You need:

Distribution

JaKtA is distributed on Maven Central. You can find the project at this link.

Setup your JaKtA project

To get started with JaKtA, create a new gradle project and import the following Maven Central dependency in your build.gradle.kts file:

  1. Create a new Kotlin project using Gradle:
mkdir jakta-project
cd jakta-project
gradle init --type kotlin-application
  1. Add JaKtA dependency in build.gradle.kts:
dependencies {
implementation("it.unibo.jakta:jakta-dsl:<latest.release>")
}

Or, alternatively, use the JaKta template.

Versioning

It is always preferrable to select a fixed version for your dependencies. Check out JaKtA's latest available version here.

Gradle

If you're not familiar with Gradle you can learn it from here.

Gradle will import JaKtA as a dependency from Maven Central, make sure your repository configuration is including it.

To setup Maven Central copy this in your build.gralde.kts file:

repositories {
mavenCentral()
}