Class ModuleDependency.Builder

    • Method Detail

      • optional

        public ModuleDependency.Builder optional​(boolean optional)
        Whether the dependency should be optional or not.
        Parameters:
        optional - true if the dependency should be optional
        Returns:
        this builder
      • export

        public ModuleDependency.Builder export​(boolean export)
        Whether the dependency should be exported or not.
        Parameters:
        export - true if the dependency should be exported
        Returns:
        this builder
      • addImportFilter

        public ModuleDependency.Builder addImportFilter​(String path,
                                                        boolean include)
        Adds an import filter for the dependency.
        Parameters:
        path - the path to filter
        include - true if the path should be included, false if the path should be excluded
        Returns:
        this builder
      • addExportFilter

        public ModuleDependency.Builder addExportFilter​(String path,
                                                        boolean include)
        Adds an export filter for the dependency.
        Parameters:
        path - the path to filter
        include - true if the path should be included, false if the path should be excluded
        Returns:
        this builder
      • build

        public ModuleDependency build()
        Creates the module dependency.
        Returns:
        the module dependency