Giter Site home page Giter Site logo

pakoito / groovy-android-gradle-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from groovy/groovy-android-gradle-plugin

0.0 2.0 0.0 124 KB

A Gradle plugin to support the Groovy language for building Android apps

License: Apache License 2.0

groovy-android-gradle-plugin's Introduction

Groovy language support for Android

Build Status

This plugin adds support for writing Android applications using the Groovy language.

Usage

Edit your build.gradle file with the following:

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:0.12.2'
        classpath 'me.champeau.gradle:gradle-groovy-android-plugin:0.3.0'
    }
}

apply plugin: 'me.champeau.gradle.groovy-android'

Then you must choose which version and modules of Groovy you use. So far, Android support is available in the 2.4.0-beta-1 release and beyond, so you need to add the following repository to your build.gradle file:

repository {
   jcenter() // or mavenCentral()
}

Then you can start using Groovy by adding a dependency on the grooid classifier:

dependencies {
    compile 'org.codehaus.groovy:groovy:2.4.0-beta-3:grooid'
}

then use the assembleDebug task to test.

Writing Groovy code

This plugin has been successfully tested with Android Studio. It will let you write an application in Groovy. It is recommended, for performance, memory and battery life, that you use @CompileStatic wherever possible.

Details can be found on my blog and here for more technical details

groovy-android-gradle-plugin's People

Contributors

melix avatar andrewreitz avatar glaforge avatar powerje avatar leonard84 avatar

Watchers

Paco avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.