49 lines
1.6 KiB
Markdown
49 lines
1.6 KiB
Markdown
# About
|
|
|
|
The source code of a Gradle plugin that can compute an Eclipse configuration from an Android project. Most of the code originates from David Green's Gradle Android Eclipse plugin on [Github](https://github.com/greensopinion/gradle-android-eclipse). However, this version of his code includes several fixes that are required to use his work.
|
|
|
|
# Setup
|
|
|
|
This project is configured to be built with [Gradle](https://gradle.org). The Jenkinsfile is executed by the NES [Jenkins](https://jenkins.io/index.html) which automatically deploys successful builds on the master branch to the NES Artifactory.
|
|
|
|
# Building
|
|
|
|
To build the project, you will have to install [Java](http://www.oracle.com/technetwork/java/index.html) and [Gradle](https://gradle.org). Then run 'gradle clean build' to trigger a build.
|
|
|
|
# Usage
|
|
|
|
To use the plugin, you will have to import it in your project's build.gradle file. To do this, include the NES Artifactory as Maven repository for resolving plugins as follows:
|
|
|
|
```
|
|
buildscript {
|
|
dependencies {
|
|
classpath 'org.handte.gradle:android-eclipse-gradle:1.0.0'
|
|
}
|
|
repositories {
|
|
maven {
|
|
url = 'https://project.nes.uni-due.de/artifactory/releases';
|
|
credentials { username = 'public'; password = 'public' }
|
|
authentication { basic(BasicAuthentication) }
|
|
}
|
|
}
|
|
}
|
|
```
|
|
|
|
Then apply the plugin to your Android application modules using the corresponding build.gradle file as follows:
|
|
|
|
```
|
|
apply plugin: 'org.handte.gradle-android-eclipse'
|
|
|
|
eclipse {
|
|
classpath {
|
|
plusConfigurations += [
|
|
configurations.eclipseConfig,
|
|
configurations.eclipseTestConfig,
|
|
]
|
|
downloadSources = true
|
|
}
|
|
}
|
|
```
|
|
|
|
|