All Downloads are FREE. Search and download functionalities are using the official Maven repository.

name.remal.gradle_plugins.toolkit.build_logic.lombok.gradle Maven / Gradle / Ivy

There is a newer version: 0.68.0
Show newest version
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')
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy