io.freefair.gradle.plugins.lombok.tasks.LombokJarTask Maven / Gradle / Ivy
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
private final ConfigurableFileCollection lombokClasspath = getProject().files();
@Nested
@Optional
private final Property launcher = getProject().getObjects().property(JavaLauncher.class);
LombokJarTask() {
getArchiveExtension().set("jar");
getArchiveBaseName().convention("lombok");
}
@Override
@Nonnull
protected final CopyAction createCopyAction() {
throw new UnsupportedOperationException();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy