Android构建工具

构建工具buck

Buck: An Android (and Java!) build tool

http://facebook.github.io/buck/

Facebook Buck和xctool:针对Android和iOS的开源构建工具

http://www.infoq.com/cn/news/2013/05/Facebook-buck-xctool-build

Gerrit为何会选择Buck

http://www.infoq.com/cn/news/2013/11/gerrit-buck

facebook / buck

https://github.com/facebook/buck

WALLED

https://www.eclipsecon.org/europe2013/improve-your-java-builds-buck

https://gerrit.googlesource.com/gerrit/+/fd6bb9f6a5aa4c2b8ae64ce2e42fd5efaa0459c9

Gradle

Java Lib:

gradle project install to local repo:

/home/erichan/IdeaProjects/quiland/java/air-io/build.gradle

configure(install.repositories.mavenInstaller) {
    pom.project {
        groupId 'feuyeux.io'
        artifactId 'air-io'
        version '1.0.0'
        description = 'Installs the artifacts to the local Maven repository.'
    }
}

Android reference:

/home/erichan/IdeaProjects/quiland/android/UdpBox/build.gradle

use the local repo:

allprojects {
    repositories {
        mavenCentral()
        maven{
            url "/home/erichan/.m2/repository"
        }
    }
}

/home/erichan/IdeaProjects/quiland/android/UdpBox/app/build.gradle

define this lib from local repo:

dependencies {
    compile group: 'feuyeux.io', name: 'air-io', version: '1.0.0'
}

猜你喜欢

转载自feuyeux.iteye.com/blog/1969935