-
Notifications
You must be signed in to change notification settings - Fork 12
2020 experiment
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)
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
}
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.