Setup

In this page we will explain the necessary steps in order to prepare your environment to use Dataflow.

Getting an account

link

Dataflow is a commercial library. If you already have your credentials you can proceed to the next step, otherwise you'll have to first contact sales in order to get a license.

Adding the library to your project

link

Adding Dataflow to your project is very easy. First, you must add our servers to the repositories list:

repositories {
    maven {
        credentials {
            username "your-username"
            password "your-password"
        }
        url "https://artifactory.femastudios.com/artifactory/libs-release"
        authentication {
            basic(BasicAuthentication)
        }
    }
}
<servers>
    <server>
        <username>your-username</username>
        <password>your-password</password>
        <id>fema-artifactory</id>
    </server>
</servers>
<repositories>
    <repository>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
        <id>fema-artifactory</id>
        <url>https://artifactory.femastudios.com/artifactory/libs-release</url>
    </repository>
</repositories>

Then, simply include the library as following:

implementation 'com.femastudios:dataflow:1.0.2'
<dependency>
    <groupId>com.femastudios</groupId>
    <artifactId>dataflow</artifactId>
    <version>1.0.2</version>
</dependency>

It is also necessary to add the following configuration for the Kotlin™ compiler:

compileKotlin {
    kotlinOptions {
        jvmTarget = "1.8"
        freeCompilerArgs += "-Xjvm-default=enable"
    }
}
<build>
<plugins>
    <plugin>
        <groupId>org.jetbrains.kotlin</groupId>
        <artifactId>kotlin-maven-plugin</artifactId>
        <version>${kotlin.version}</version>
        ...
        <configuration>
            <jvmTarget>1.8</jvmTarget>
            <args>
                <arg>-Xjvm-default=enable</arg>
            </args>
        </configuration>
    </plugin>
</plugins>
</build>

For more information about configuring your environment with Kotlin™ please visit the official Kotlin™ doc for Maven and for Gradle.

Gradle is the suggested choice.