Skip to content

eskatos/vlingo-gradle-plugin

Repository files navigation

vlingo gradle plugin Build Status

Gradle plugin supporting the vlingo platform.

Caution

WORK IN PROGRESS

BREAKING CHANGES TO COME

Usage

Targeting the JVM

// build.gradle.kts
plugins {
    id("java") // or groovy, scala, kotlin
    id("io.vlingo.codegen") version "0.1.1"
}

dependencies {
    implementation("io.vlingo:vlingo-actors:0.8.2")
}

tasks {
    generateActorProxies {
        actorProtocols.set(listOf(
            "io.vlingo.gradle.actortest.Test1Protocol",
            "io.vlingo.gradle.actortest.Test2Protocol"
        ))
    }
}

Targeting Android

// app/build.gradle.kts
plugins {
    id("com.android.application") version "3.3.0"
    id("io.vlingo.codegen") version "0.1.1"
}

dependencies {
    implementation("io.vlingo:vlingo-actors:0.8.2")
}

afterEvaluate {
    tasks.getByName("generateDebugActorProxies") {
        actorProtocols.set(listOf(
            "io.vlingo.gradle.actortest.Test1Protocol",
            "io.vlingo.gradle.actortest.Test2Protocol"
        ))
    }
}

Compatibility

The plugin requires Java 8 or greater and Gradle 4.7 or greater.

The Android support requires Gradle 4.10.1 or greater.

Plugin compatibility history

Plugin version | Minimum | Maximum Gradle version
         0.1.1 |    4.7  | 5.x
         0.1.0 |    4.7  | 5.x