Skip to content
This repository has been archived by the owner on May 31, 2021. It is now read-only.

2020 experiment

David Green edited this page Feb 19, 2020 · 3 revisions

This project has been sitting pretty still for a couple of years, but I've got a new need and have started an experiment to see if I can get this up and running reasonably well in 2020.

My goal is to see whether I can get this working well enough for regular use. Good, not perfect. My bandwidth for this is limited, so I'm not sure how far I'll get.

I'm basing these changes on my personal needs for a single Android project. The settings and assumptions may not suit everyone - so feel free to make suggestions for changes (pull requests, issues.)

Here's the branch that I've been working with: 2020-experiment

Some issues have been addressed on that branch, specifically:

  • plug-in source/target compatibility set to 1.8 (issue #12)
  • source folders updated to include test and test resources, removed some obsolete ones and added new ones
  • JDT compiler settings (Java version)
  • move test library dependencies before runtime dependencies in the .classpath so that JRE-based guava comes before Android-based guava (needed for Selenium Webdriver)
  • set default output to a folder
  • improved exploded aars folder structure (issue #17)

Gradle Build

See the README for general configuration.

The implementation still requires the workaround described in issue #9 in the build.gradle:

configurations {
    eclipseConfig.extendsFrom implementation
    eclipseTestConfig.extendsFrom testImplementation
}

Using a Local Build

To use a locally-built version of this plug-in, you'll need the following in your build.gradle:

buildscript {
    dependencies {
        // remove this temporarily: classpath "gradle.plugin.com.greensopinion.gradle-android-eclipse:android-eclipse:1.2"

        // a local classpath that includes the plug-in
        classpath files('/absolute/path/to/your/git/gradle-android-eclipse/build/libs/gradle-android-eclipse-1.2.jar')
    }
}

To create the jar file, run gradle jar in the plug-in project folder. If you're experimenting with changes, don't forget to rebuild the jar every time you want to try out a new change.

Clone this wiki locally