Interface ComponentMetadataDetails

    • Method Detail

      • setChanging

        void setChanging​(boolean changing)
        Sets whether the component is changing or immutable.
        Parameters:
        changing - whether the component is changing or immutable
      • setStatusScheme

        void setStatusScheme​(List<String> statusScheme)
        Sets the status scheme of the component. Values are ordered from least to most mature status.
        Parameters:
        statusScheme - the status scheme of the component
      • withVariant

        @Incubating
        void withVariant​(String name,
                         Action<? super VariantMetadata> action)
        Add a rule for adjusting an existing variant of the component.
        Parameters:
        name - name of the variant to adjust (e.g. 'compile')
        action - the action to modify the variant
        Since:
        4.4
      • allVariants

        @Incubating
        void allVariants​(Action<? super VariantMetadata> action)
        Add a rule for adjusting all variants of a component.
        Parameters:
        action - the action to be executed on each variant.
        Since:
        4.5
      • belongsTo

        @Incubating
        void belongsTo​(Object notation)
        Declares that this component belongs to a virtual platform, which should be considered during dependency resolution.
        Parameters:
        notation - the coordinates of the owner
        Since:
        4.10
      • belongsTo

        @Incubating
        void belongsTo​(Object notation,
                       boolean virtual)
        Declares that this component belongs to a platform, which should be considered during dependency resolution.
        Parameters:
        notation - the coordinates of the owner
        virtual - must be set to true if the platform is a virtual platform, or false if it's a published platform
        Since:
        5.0