An open API service indexing awesome lists of open source software.

https://github.com/avides/gitlab-release-maven-plugin

Maven plugin to create gitlab release tags
https://github.com/avides/gitlab-release-maven-plugin

gitlab maven maven-plugin

Last synced: 6 months ago
JSON representation

Maven plugin to create gitlab release tags

Awesome Lists containing this project

README

          

# gitlab-release-maven-plugin

[![Maven Central](https://img.shields.io/maven-metadata/v/http/central.maven.org/maven2/com/avides/gitlab/gitlab-release-maven-plugin/maven-metadata.xml.svg)](https://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.avides.gitlab%22%20AND%20a%3A%22gitlab-release-maven-plugin%22)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/d7eca0c7e4684857ab166dcbcf2b75b5)](https://www.codacy.com/app/avides-builds/gitlab-release-maven-plugin)
[![Codacy Badge](https://api.codacy.com/project/badge/Coverage/d7eca0c7e4684857ab166dcbcf2b75b5)](https://www.codacy.com/app/avides-builds/gitlab-release-maven-plugin)
[![Build Status](https://travis-ci.org/avides/gitlab-release-maven-plugin.svg?branch=master)](https://travis-ci.org/avides/gitlab-release-maven-plugin)

The gitlab-release-maven-plugin creates tags on your GitLab Repository by your project version in your maven build.

## Plugin

### With required configuration options
```xml

com.avides.gitlab
gitlab-release-maven-plugin
2.2.0-RELEASE

```

### With all options
```xml

com.avides.gitlab
gitlab-release-maven-plugin
2.2.0-RELEASE

http://your-custom-gitlab-domain/
GITLAB_ACCESS_TOKEN
repository-namespace
project-name
0.1.0-RELEASE
true
YOUR_DEPLOYMENT_BRANCH

```

## Configuration options
| Property | Description | Required |
| ------------------------- | ------------------------------------------------------------------------------------------------------------------- | -------- |
| gitlabHost | Your custom GitLab URL (default: `https://gitlab.com`) | No |
| gitlabAccessToken | Your User GitLab Access Token (Pass this token directly in the execute command, `-DgitlabAccessToken=ACCESS_TOKEN`) | Yes |
| gitlabRepositoryNamespace | Repository namespace (If `project.scm.url` is set in your pom, it will be resolved automatically.) | No |
| gitlabRepositoryName | Repository name (default: `${project.name}`) | No |
| projectVersion | Project version and finally the Release-Tag name (default: `${project.version}`) | No |
| gitlabPreReleaseDesired | If `true`, PRE-Releases will be create a Release-Tag, otherwise not (default: `false`) | No |
| gitlabBranchName | Your deployment branch (default: `master`) | No |

## Usage
```bash
mvn gitlab-release:release -DgitlabAccessToken=ACCESS_TOKEN
```