gradle-plugins
gradle-plugins copied to clipboard
[Feature Request] Lombok Plugin: Update `withSourcesJar()` to use the delomboked source
Gradle's JavaPluginExtension includes a withSourcesJar() that automatically packages source code (reference docs).
This is a feature request for the Lombok plugin to change the source to the delomboked source.
The sourcesJar task currently does not use the delombok-ed sources on purpose.
With the current setup the line-numbers of the source code inside the -sources jar and the LineNumberTable inside the .class-files inside the normal jar match each other.
How can we use the delombok-ed sources with the sourcesJar ? An easy option inside the plugin would be nice
This should do the trick:
sourcesJar {
exclude {
sourceSets.main.allSource.contains it.file
}
from delombok
}