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:
- A terminal, bash compatible preferred
- Java 11+ installed and working
- Java can be downloaded from https://adoptium.net/
- Git installed and working
- Git can be downloaded from https://git-scm.com
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:
- Create a new Kotlin project using Gradle:
mkdir jakta-project
cd jakta-project
gradle init --type kotlin-application
- 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()
}