Skip to content

Commit 919bc69

Browse files
committed
Enable dependency resolution for the Maven plugin
Fixes #16
1 parent 643b216 commit 919bc69

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

Diff for: README.md

+5
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,11 @@ the lambda accesses an instance variable).
140140
Version History
141141
---------------
142142

143+
### Upcoming
144+
145+
- Fixed the Retrolambda Maven plugin not using the project's classpath
146+
([Issue #16](https://github.com/orfjackal/retrolambda/issues/16))
147+
143148
### Retrolambda 1.2.0 (2014-05-02)
144149

145150
- Maven plugin for running Retrolambda (by Dave Moten)

Diff for: retrolambda-maven-plugin/src/main/java/net/orfjackal/retrolambda/maven/ProcessMainClassesMojo.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
* Processes main (non-test) classes compiled with Java 8 so that they will be
1111
* compatible with Java 5, 6 or 7 runtime.
1212
*/
13-
@Mojo(name = "process-main", defaultPhase = LifecyclePhase.PROCESS_CLASSES)
13+
@Mojo(name = "process-main",
14+
defaultPhase = LifecyclePhase.PROCESS_CLASSES,
15+
requiresDependencyResolution = ResolutionScope.COMPILE)
1416
public class ProcessMainClassesMojo extends ProcessClassesMojo {
1517

1618
public ProcessMainClassesMojo() {

Diff for: retrolambda-maven-plugin/src/main/java/net/orfjackal/retrolambda/maven/ProcessTestClassesMojo.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
* Processes test classes compiled with Java 8 so that they will be compatible with
1111
* Java 5, 6 or 7 runtime.
1212
*/
13-
@Mojo(name = "process-test", defaultPhase = LifecyclePhase.PROCESS_TEST_CLASSES)
13+
@Mojo(name = "process-test",
14+
defaultPhase = LifecyclePhase.PROCESS_TEST_CLASSES,
15+
requiresDependencyResolution = ResolutionScope.TEST)
1416
public class ProcessTestClassesMojo extends ProcessClassesMojo {
1517

1618
public ProcessTestClassesMojo() {

0 commit comments

Comments
 (0)