Interface ConfigurationVariant

    • Method Detail

      • getDescription

        @Incubating
        java.util.Optional<java.lang.String> getDescription()
        Returns an optional note describing this variant.
        Since:
        7.5
      • getArtifacts

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

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

        See ArtifactHandler for details of the supported notations.

      • artifact

        void artifact​(java.lang.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.