Yandex :: Gradle Android plugin

Plugin gives an opportunity to build application library and android application which has dependence on it.

License

License

Categories

Categories

Gradle Build Tools Dex General Purpose Libraries Utility
GroupId

GroupId

ru.yandex.android.tools
ArtifactId

ArtifactId

gradle-android-plugin
Last Version

Last Version

1.06
Release Date

Release Date

Type

Type

jar
Description

Description

Yandex :: Gradle Android plugin
Plugin gives an opportunity to build application library and android application which has dependence on it.
Project URL

Project URL

https://github.com/yandexmobile/gradle-android-plugin
Source Code Management

Source Code Management

https://github.com/yandexmobile/gradle-android-plugin.git

Download gradle-android-plugin

How to add to project

<!-- https://jarcasting.com/artifacts/ru.yandex.android.tools/gradle-android-plugin/ -->
<dependency>
    <groupId>ru.yandex.android.tools</groupId>
    <artifactId>gradle-android-plugin</artifactId>
    <version>1.06</version>
</dependency>
// https://jarcasting.com/artifacts/ru.yandex.android.tools/gradle-android-plugin/
implementation 'ru.yandex.android.tools:gradle-android-plugin:1.06'
// https://jarcasting.com/artifacts/ru.yandex.android.tools/gradle-android-plugin/
implementation ("ru.yandex.android.tools:gradle-android-plugin:1.06")
'ru.yandex.android.tools:gradle-android-plugin:jar:1.06'
<dependency org="ru.yandex.android.tools" name="gradle-android-plugin" rev="1.06">
  <artifact name="gradle-android-plugin" type="jar" />
</dependency>
@Grapes(
@Grab(group='ru.yandex.android.tools', module='gradle-android-plugin', version='1.06')
)
libraryDependencies += "ru.yandex.android.tools" % "gradle-android-plugin" % "1.06"
[ru.yandex.android.tools/gradle-android-plugin "1.06"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

gradle-android-plugin

Плагин позволяет собрать Android Library Project в application library, а так же собрать зависимый от этой библиотеки проект.

Для сборки и выгрузки плагина в локальный репозиторий запустите

./gradlew build uploadArchives

Взгляните на пример сборки библиотеки и зависимого приложения тут: https://github.com/yandexmobile/gradle-android-plugin-usage-example

Чтобы использовать плагин нужно:

Импортировать его в build.gradle

buildscript {
    repositories {
        ivy{name "local"; url 'file://' + new File(System.getProperty('user.home'), '.yandex/ivy-repo').absolutePath}
        mavenCentral()
    }
    dependencies {
        classpath "ru.yandex.android.tools:gradle-android-plugin:1.00"
    }
}

apply plugin: 'apklib'

При вызове сборки заменить исполняемый файл с ant на gradlew, например

Было: ant clean release

Стало: ./gradlew clean release

ru.yandex.android.tools

Versions

Version
1.06
1.03
1.02
1.01
1.00