Skip to content

Commit

Permalink
Enable dependency resolution for the Maven plugin
Browse files Browse the repository at this point in the history
Fixes #16
  • Loading branch information
luontola committed May 4, 2014
1 parent 643b216 commit 919bc69
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@ the lambda accesses an instance variable).
Version History
---------------

### Upcoming

- Fixed the Retrolambda Maven plugin not using the project's classpath
([Issue #16](https://github.com/orfjackal/retrolambda/issues/16))

### Retrolambda 1.2.0 (2014-05-02)

- Maven plugin for running Retrolambda (by Dave Moten)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
* Processes main (non-test) classes compiled with Java 8 so that they will be
* compatible with Java 5, 6 or 7 runtime.
*/
@Mojo(name = "process-main", defaultPhase = LifecyclePhase.PROCESS_CLASSES)
@Mojo(name = "process-main",
defaultPhase = LifecyclePhase.PROCESS_CLASSES,
requiresDependencyResolution = ResolutionScope.COMPILE)
public class ProcessMainClassesMojo extends ProcessClassesMojo {

public ProcessMainClassesMojo() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
* Processes test classes compiled with Java 8 so that they will be compatible with
* Java 5, 6 or 7 runtime.
*/
@Mojo(name = "process-test", defaultPhase = LifecyclePhase.PROCESS_TEST_CLASSES)
@Mojo(name = "process-test",
defaultPhase = LifecyclePhase.PROCESS_TEST_CLASSES,
requiresDependencyResolution = ResolutionScope.TEST)
public class ProcessTestClassesMojo extends ProcessClassesMojo {

public ProcessTestClassesMojo() {
Expand Down

1 comment on commit 919bc69

@davidmoten
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, that simple! Great.

Please sign in to comment.