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

io.freefair.gradle.plugins.maven.war.WarAttachClassesConvention Maven / Gradle / Ivy

There is a newer version: 8.11
Show newest version
package io.freefair.gradle.plugins.maven.war;

import lombok.Data;
import org.gradle.api.provider.Property;
import org.gradle.internal.deprecation.DeprecationLogger;

/**
 * @author Lars Grefer
 */
@Data
@Deprecated
public class WarAttachClassesConvention {

    /**
     * Whether classes (that is the content of the WEB-INF/classes directory) should be attached to the project as an additional artifact.
     * 

* By default the classifier for the additional artifact is 'classes'. You can change it with the {@link #classesClassifier} parameter. * * @see #classesClassifier * @see maven-war-plugin#attachClasses */ private final Property attachClasses; /** * The classifier to use for the attached classes artifact. * * @see #attachClasses */ private final Property classesClassifier; public boolean isAttachClasses() { DeprecationLogger.deprecateProperty(WarArchiveClassesConvention.class, "attachClasses") .willBeRemovedInGradle8() .undocumented() .nagUser(); return this.attachClasses.get(); } public String getClassesClassifier() { DeprecationLogger.deprecateProperty(WarArchiveClassesConvention.class, "classesClassifier") .willBeRemovedInGradle8() .undocumented() .nagUser(); return this.classesClassifier.get(); } public void setAttachClasses(boolean attachClasses) { DeprecationLogger.deprecateProperty(WarArchiveClassesConvention.class, "attachClasses") .willBeRemovedInGradle8() .undocumented() .nagUser(); this.attachClasses.convention(attachClasses); this.attachClasses.set(attachClasses); } public void setClassesClassifier(String classesClassifier) { DeprecationLogger.deprecateProperty(WarArchiveClassesConvention.class, "classesClassifier") .willBeRemovedInGradle8() .undocumented() .nagUser(); this.classesClassifier.convention(classesClassifier); this.classesClassifier.set(classesClassifier); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy