name.remal.gradle_plugins.toolkit.build_logic.lombok.gradle Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of build-logic Show documentation
Show all versions of build-logic Show documentation
Remal Gradle plugins: toolkit: build-logic
allprojects {
pluginManager.withPlugin('java') {
apply plugin: 'name.remal.lombok'
lombok {
delombok {
format {
pretty = true
}
}
}
sourceSets.all { SourceSet sourceSet ->
tasks.named(sourceSet.getTaskName('delombok', '')).configure { Task task ->
onlyIf {
task.classpath.from(project.files(project.provider { project.configurations.optionalHidden.files }))
return true
}
}
}
project.ext.fatJarWithDependentTaskNames.add('delombok')
}
}