# Class PublishToMavenRepository.RepositorySpec

java.lang.Object
org.gradle.api.publish.maven.tasks.PublishToMavenRepository.RepositorySpec

Direct Known Subclasses:
  `PublishToMavenRepository.RepositorySpec.Configured, PublishToMavenRepository.RepositorySpec.DefaultRepositorySpec`

Enclosing class:
  `PublishToMavenRepository`

abstract static class PublishToMavenRepository.RepositorySpec extends Object

Since:
  1.4

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `(package private) static class`
  `PublishToMavenRepository.RepositorySpec.Configured`
  `(package private) static class`
  `PublishToMavenRepository.RepositorySpec.CredentialsSpec`
  `(package private) static class`
  `PublishToMavenRepository.RepositorySpec.DefaultRepositorySpec`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `RepositorySpec()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `(package private) abstract MavenArtifactRepository`
  `get(org.gradle.internal.service.ServiceRegistry services)`
  `(package private) static PublishToMavenRepository.RepositorySpec`
  `of(org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository repository)`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### RepositorySpec

    RepositorySpec()

- ## Method Details

  - ### of

    static PublishToMavenRepository.RepositorySpec of(org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository repository)

  - ### get

    abstract MavenArtifactRepository get(org.gradle.internal.service.ServiceRegistry services)