Class RepositoryDescriptor

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<RepositoryDescriptor>

    public class RepositoryDescriptor
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Comparable<RepositoryDescriptor>
    The repository descriptor (hydra.json at the repository root): release and host versions, host consumption overrides, publication metadata, and the list of source packages.
    See Also:
    Serialized Form
    • Field Detail

      • TYPE_

        public static final Name TYPE_
        Name of the hydra.build.format.RepositoryDescriptor type.
      • CURRENT_VERSION

        public static final Name CURRENT_VERSION
        Name of the hydra.build.format.RepositoryDescriptor.currentVersion field.
      • HOST_VERSION

        public static final Name HOST_VERSION
        Name of the hydra.build.format.RepositoryDescriptor.hostVersion field.
      • HOST_OVERRIDES

        public static final Name HOST_OVERRIDES
        Name of the hydra.build.format.RepositoryDescriptor.hostOverrides field.
      • GROUP

        public static final Name GROUP
        Name of the hydra.build.format.RepositoryDescriptor.group field.
      • AUTHOR

        public static final Name AUTHOR
        Name of the hydra.build.format.RepositoryDescriptor.author field.
      • URL

        public static final Name URL
        Name of the hydra.build.format.RepositoryDescriptor.url field.
      • LICENSE

        public static final Name LICENSE
        Name of the hydra.build.format.RepositoryDescriptor.license field.
      • PACKAGES

        public static final Name PACKAGES
        Name of the hydra.build.format.RepositoryDescriptor.packages field.
      • currentVersion

        public final Version currentVersion
        The version currently under development
      • hostVersion

        public final Version hostVersion
        The published host version consumed by default when generating code
      • hostOverrides

        public final java.util.Map<LanguageName,​HostOverride> hostOverrides
        Per-host-language overrides of the default published-host consumption
      • group

        public final java.lang.String group
        The group identifier under which artifacts are published, e.g. a Maven group id
      • author

        public final java.lang.String author
        The author attribution for published artifacts
      • url

        public final java.lang.String url
        The URL of the project
      • license

        public final java.lang.String license
        The license identifier for published artifacts, e.g. "Apache-2.0"
      • packages

        public final java.util.List<PackageName> packages
        The names of the repository's source packages
    • Constructor Detail

      • RepositoryDescriptor

        public RepositoryDescriptor​(Version currentVersion,
                                    Version hostVersion,
                                    java.util.Map<LanguageName,​HostOverride> hostOverrides,
                                    java.lang.String group,
                                    java.lang.String author,
                                    java.lang.String url,
                                    java.lang.String license,
                                    java.util.List<PackageName> packages)
        Constructs an immutable RepositoryDescriptor.
        Parameters:
        currentVersion - The version currently under development
        hostVersion - The published host version consumed by default when generating code
        hostOverrides - Per-host-language overrides of the default published-host consumption
        group - The group identifier under which artifacts are published, e.g. a Maven group id
        author - The author attribution for published artifacts
        url - The URL of the project
        license - The license identifier for published artifacts, e.g. "Apache-2.0"
        packages - The names of the repository's source packages