# Cloud Build V1 API - Class Google::Cloud::Build::V1::Artifacts::MavenArtifact (v1.12.0)

1.12.0 (latest) 1.11.0 1.10.0 1.9.1 1.8.0 1.7.0 1.6.1 1.5.1 1.4.0 1.3.0 1.2.0 1.1.0 1.0.1 0.27.1 0.26.2 0.25.0 0.24.0 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.3 Reference documentation and code samples for the Cloud Build V1 API class Google::Cloud::Build::V1::Artifacts::MavenArtifact.

A Maven artifact to upload to Artifact Registry upon successful completion
of all build steps.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #artifact_id

    def artifact_id() -> ::String

**Returns**

- (::String) --- Maven `artifactId` value used when uploading the artifact to Artifact Registry.

### #artifact_id=

    def artifact_id=(value) -> ::String

**Parameter**

- **value** (::String) --- Maven `artifactId` value used when uploading the artifact to Artifact Registry.
**Returns**

- (::String) --- Maven `artifactId` value used when uploading the artifact to Artifact Registry.

### #group_id

    def group_id() -> ::String

**Returns**

- (::String) --- Maven `groupId` value used when uploading the artifact to Artifact Registry.

### #group_id=

    def group_id=(value) -> ::String

**Parameter**

- **value** (::String) --- Maven `groupId` value used when uploading the artifact to Artifact Registry.
**Returns**

- (::String) --- Maven `groupId` value used when uploading the artifact to Artifact Registry.

### #path

    def path() -> ::String

**Returns**

- (::String) --- Optional. Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.

### #path=

    def path=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.
**Returns**

- (::String) --- Optional. Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.

### #repository

    def repository() -> ::String

**Returns**

- (::String) --- Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY"

  Artifact in the workspace specified by path will be uploaded to
  Artifact Registry with this location as a prefix.

### #repository=

    def repository=(value) -> ::String

**Parameter**

- **value** (::String) --- Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY"


  Artifact in the workspace specified by path will be uploaded to
  Artifact Registry with this location as a prefix.
**Returns**

- (::String) --- Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY"

  Artifact in the workspace specified by path will be uploaded to
  Artifact Registry with this location as a prefix.

### #version

    def version() -> ::String

**Returns**

- (::String) --- Maven `version` value used when uploading the artifact to Artifact Registry.

### #version=

    def version=(value) -> ::String

**Parameter**

- **value** (::String) --- Maven `version` value used when uploading the artifact to Artifact Registry.
**Returns**

- (::String) --- Maven `version` value used when uploading the artifact to Artifact Registry.