franzbecker / gradle-lombok

Gradle plugin for Lombok support
Apache License 2.0
182 stars 22 forks source link

Default delombok task doesn't work by default with modern implementation dependencies #68

Closed chadlwilson closed 5 years ago

chadlwilson commented 5 years ago

Problem The default configuration doesn't build the JavaExec classpath correctly if you use modern Gradle implementation dependencies; as opposed to the legacy/deprecated compile dependencies from Gradle 2.x.

Workaround Extend the classpath like the below

task delombok(type: io.franzbecker.gradle.lombok.task.DelombokTask, dependsOn: compileJava) {
    classpath += project.configurations.compileClasspath
    //...
franzbecker commented 5 years ago

I've release your change as v3.0.0. Thanks again 👍

chadlwilson commented 5 years ago

Wow, 3.0.0 - big move ;-)