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

io.freefair.gradle.plugins.lombok.tasks.LombokJarTask Maven / Gradle / Ivy

The newest version!
package io.freefair.gradle.plugins.lombok.tasks;

import lombok.Getter;
import org.gradle.api.file.ConfigurableFileCollection;
import org.gradle.api.internal.file.copy.CopyAction;
import org.gradle.api.provider.Property;
import org.gradle.api.tasks.Classpath;
import org.gradle.api.tasks.Nested;
import org.gradle.api.tasks.Optional;
import org.gradle.api.tasks.bundling.AbstractArchiveTask;
import org.gradle.jvm.toolchain.JavaLauncher;

import javax.annotation.Nonnull;

@Getter
public abstract class LombokJarTask extends AbstractArchiveTask implements LombokTask {

    @Classpath
    public abstract ConfigurableFileCollection getLombokClasspath();

    @Nested
    @Optional
    public abstract Property getLauncher();

    LombokJarTask() {
        getArchiveExtension().set("jar");
        getArchiveBaseName().convention("lombok");
    }

    @Override
    @Nonnull
    protected final CopyAction createCopyAction() {
        throw new UnsupportedOperationException();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy