Interface SArtifactDependency

    • Method Detail

      • createCopy

        SArtifactDependency createCopy()
        Creates copy of this artifact dependency.
        Returns:
        copy of this artifact dependency.
      • resolveForBuild

        @Nullable
        SBuild resolveForBuild​(@NotNull
                               SBuild targetBuild)
                        throws BuildTypeNotFoundException,
                               AccessDeniedException
        Searches for a build according to dependency settings for the specified target build
        Parameters:
        targetBuild - the build for which the resolving is performed
        Returns:
        build or null if build was not found
        Throws:
        BuildTypeNotFoundException - if source build configuration does not exist
        AccessDeniedException - if current authority holder does not have necessary rights for the source build configuration
        Since:
        5.0
      • createOptionalCopy

        SArtifactDependency createOptionalCopy()
        Returns:
        A full copy of this artifact dependency where all include rules are replaced with optional rules, i.e. failure to download corresponding artifacts won't fail the build
        Since:
        2024.12