Skip to main content
Version: 1.0.7

Installation

Brobot is published to Maven Central, making it easy to include in any standard Java project using Maven or Gradle.

Prerequisitesโ€‹

Before you begin, please ensure your development environment meets the following requirements:

  • Java 21 or higher: The Brobot library is built targeting Java 21.
  • Build Tool: Your project must be managed by a build tool that can resolve dependencies from Maven Central, such as Maven or Gradle.
  • Spring Framework (Recommended): Brobot is built using the Spring Framework. While it can be used in other contexts, it is designed to integrate seamlessly into a Spring or Spring Boot application.

Adding the Brobot Dependencyโ€‹

To add the Brobot library to your project, add the following dependency to your build configuration file.

Gradleโ€‹

In your build.gradle or build.gradle.kts file, add the following to your dependencies block:

implementation 'io.github.jspinak:brobot:1.0.7'

Mavenโ€‹

In your pom.xml file, add the following within your <dependencies> block:

<dependency>
<groupId>io.github.jspinak</groupId>
<artifactId>brobot</artifactId>
<version>1.0.7</version>
</dependency>

Your build tool will automatically download the Brobot library and its required transitive dependencies from Maven Central.

Transitive Dependenciesโ€‹

Brobot is built on top of several powerful open-source libraries. When you add Brobot as a dependency, your build tool will automatically include these as well. You do not need to add them to your build file manually.

The key transitive dependencies include:

  • SikuliX: The core engine used for all visual automation, screen analysis, and control of the mouse and keyboard.
  • JavaCV (OpenCV): Provides the underlying computer vision functionality.
  • Spring Framework: Used for dependency injection and application configuration.

Using Unstable (Snapshot) Versionsโ€‹

If you want to use the latest, unreleased features, you can use a SNAPSHOT version. These builds are unstable and not recommended for production use.

To use a snapshot version, you must first add the Sonatype OSS Snapshots repository to your build configuration, and then specify a snapshot version for the dependency.

Gradle (build.gradle)โ€‹

repositories {
mavenCentral()
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots/' }
}

dependencies {
implementation 'io.github.jspinak:brobot:1.0.8-SNAPSHOT' // Example version
}

Maven (pom.xml)โ€‹

<repositories>
<repository>
<id>sonatype-snapshots</id>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>io.github.jspinak</groupId>
<artifactId>brobot</artifactId>
<version>1.0.8-SNAPSHOT</version> </dependency>
</dependencies>