How to install the Vaandroid Gradle Plugin.

The plugin is not yet available in the Gradle Plugin Portal, so you will need to add our repository to your settings.gradle file.

pluginManagement {
    repositories {
        maven { url "https://repo.twelvetone.tv" }
        gradlePluginPortal()
    }
}

Replace repositories with your favorite repositories. Replace vaandroid.pkg with your Android package identifier.

buildscript {
    repositories {
        mavenLocal()
        mavenCentral()
    }
}

plugins {
    id 'vaandroid.plugin' version '1.0'    
}

// Settings for the application
vaandroid {
    pkg 'com.test.application'
}

// Settings for the server
vaandroidServer {
}

You can leave out vaandroid.pkg if you define project.group and project.name. For example, your project.group is com.test and your project.name is application.

You will need to also add your development language plugin, be it Kotlin, Java, or Groovy.

Enabling Kotlin Support

plugins {
    id "org.jetbrains.kotlin.jvm" version "1.2.21"
}
dependencies {
    compile "org.jetbrains.kotlin:kotlin-stdlib"
}