Interface ConfigurationVariant

All Superinterfaces:
HasAttributes, HasConfigurableAttributes<ConfigurationVariant>, Named

@Incubating public interface ConfigurationVariant extends Named, HasConfigurableAttributes<ConfigurationVariant>
Represents some variant of an outgoing configuration.
Since:
3.3
  • Method Details

    • getArtifacts

      PublishArtifactSet getArtifacts()
      Returns the artifacts associated with this variant.
    • artifact

      void artifact(Object notation)
      Adds an artifact to this variant.

      See ArtifactHandler for details of the supported notations.

    • artifact

      void artifact(Object notation, Action<? super ConfigurablePublishArtifact> configureAction)
      Adds an artifact to this variant, configuring it using the given action.

      See ArtifactHandler for details of the supported notations.