eskatos / vlingo-gradle-plugin

Gradle plugins supporting the vlingo platform
https://vlingo.io/
Mozilla Public License 2.0
1 stars 0 forks source link
actor-model build gradle gradle-plugin vlingo vlingo-actors

= vlingo gradle plugin image:https://travis-ci.org/eskatos/vlingo-gradle-plugin.svg?branch=master["Build Status", link="https://travis-ci.org/eskatos/vlingo-gradle-plugin"]

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