Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
evant committed Apr 14, 2015
2 parents 2fdeee1 + 044120d commit 88e4e67
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
13 changes: 7 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,25 @@
- Fixed minor warning typo.
- Uploaded to the gradle plugin portal.

### 3.0.0
#### 3.0.0
A whole bunch of changes!
- Changed the default retrolambda to 2.0.0
- Added support for default methods, add `defaultMethods true` to the retrolambda block. Note: due
to a current limitation in retrolamba, this will require all of your class files to be fed through
retrolambda on each build. This may adversely affect build times.
- `incremental false` is no longer deprecated but has different semantics. Instead of being a hack
around gradle-retrolambda breaking other plugins, it now only forces all of your class files to be
around gradle-retrolambda breaking other plugins, it now only forces all of your class files to be
run through retrolambda instead of only the changed ones.
- Added support for android unit tests, including lambdas in the tests themselves.
- No longer patch the android jar, modify the classpath instead. This should resolve issues with
using gradle-retrolambda with more obscure android sdks, like google glass. This should also speed
up a clean build since it doesn't have to do any zipping shenanigans.
- Ensure the gradle plugin is compiled with java 6 compatibility. This should allow you to run
- Ensure the gradle plugin is compiled with java 6 compatibility. This should allow you to run
gradle with an older version of java if you don't want java 8 set as the default. This was always
the intention, but was broken in the last build.
- More minor changes to how the java compile task is replaced, this should ensure better
compatibility with other plugins.
- More minor changes to how the java compile task is replaced, this should ensure better
compatibility with other plugins. Note: these changes make the plugin application order more
important. *Make sure you you apply this plugin last.*
- Removed 'retrolambda', now you can only apply the plugin with 'me.tatarka.retrolambda'.

#### 2.5.0
Expand Down Expand Up @@ -55,7 +56,7 @@ the gradle plugin portal.

#### 2.2.3

- Change dependency back to `localGroovy()`, `org.codehaus.groovy:groovy-all:2.3.3` was causing
- Change dependency back to `localGroovy()`, `org.codehaus.groovy:groovy-all:2.3.3` was causing
issues.

#### 2.2.2
Expand Down
17 changes: 8 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Usage
id "me.tatarka.retrolambda" version "3.0.1"
}
```

3. There is no step three!

The plugin will compile the source code with java8 and then replace the class
Expand Down Expand Up @@ -84,7 +84,7 @@ retrolambda {
- `exclude 'Test'` Sets which sets/variants to not run through retrolambda. Only
one of either `include` or `exclude` should be defined.
- `jvmArgs` Add additional jvm args when running retrolambda.
- `defaultMethods` Turn on default and static methods in interfaces support. Note: due to a
- `defaultMethods` Turn on default and static methods in interfaces support. Note: due to a
limitation in retrolamba, this will set `incremental` to false. The default is false.
- `incremental` Setting this to false forces all of your class files to be run through retrolambda
instead of only the ones that have changed. The default is true.
Expand Down Expand Up @@ -128,9 +128,9 @@ Known Issues
---------------
### Using Google Play Services causes retrolambda to fail
Version `5.0.77` contains bytecode that is incompatible with retrolambda. This should be fixed in
newer versions of play services, if you can update, that should be the preferred solution. To work
around this issue, you can either use an earlier version like `4.4.52` or add `-noverify` to the jvm
args. See [orfjackal/retrolambda#25](https://github.com/orfjackal/retrolambda/issues/25) for more
newer versions of play services, if you can update, that should be the preferred solution. To work
around this issue, you can either use an earlier version like `4.4.52` or add `-noverify` to the jvm
args. See [orfjackal/retrolambda#25](https://github.com/orfjackal/retrolambda/issues/25) for more
information.

```groovy
Expand All @@ -139,17 +139,16 @@ retrolambda {
}
```

### Compiling for android-L doesn't work when using Android Studio's sdk manager.
### Compiling for android-L doesn't work when using Android Studio's sdk manager.
For some reason only known to the gods, when using Android Studio's sdk manager,
there is no `android-L` directory sdk directory. Instead, it happily builds
using the `android-20` directory instead. To work around this, you can symlink
the `android-L` directory to point to `android-20`. See
[#36](https://github.com/evant/gradle-retrolambda/issues/36).

### Build fails with using `android-apt`
This is because `android-apt` modifies the `javaCompile` task and this plugin
replaces it. Since `v2.4.1` this is fixed, you just need to ensure you apply
this plugin _before_ `android-apt`.
This is because `android-apt` modifies the `javaCompile` task and this plugin
replaces it. Since `v2.4.1` this is fixed, you just need to ensure you apply this plugin _last_.

Updates
-------
Expand Down

0 comments on commit 88e4e67

Please sign in to comment.