Skip to content

Commit

Permalink
build(release): bump patch version
Browse files Browse the repository at this point in the history
  • Loading branch information
qoomon committed Sep 27, 2022
1 parent bf46f3a commit cbf660b
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 12 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 6.3.2

##### Fixes
- Extend gitlab ci support for env var CI_MERGE_REQUEST_SOURCE_BRANCH_NAME


## 6.3.0

##### Features
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ This plugin can virtually set project version and properties, based on current *

```groovy
plugins {
id 'me.qoomon.git-versioning' version '6.3.0'
id 'me.qoomon.git-versioning' version '6.3.2'
}
version = '0.0.0-SNAPSHOT'
Expand All @@ -41,7 +41,7 @@ gitVersioning.apply {

```kotlin
plugins {
id("me.qoomon.git-versioning") version "6.3.0"
id("me.qoomon.git-versioning") version "6.3.2"
}


Expand Down Expand Up @@ -339,7 +339,7 @@ You can provide those, by using [Parameters & Environment Variables](#parameters
### Native Support
* GitHub Actions: if `$GITHUB_ACTIONS == true`, `GITHUB_REF` is considered
* GitLab CI: if `$GITLAB_CI == true`, `CI_COMMIT_BRANCH` and `CI_COMMIT_TAG` are considered
* GitLab CI: if `$GITLAB_CI == true`, `CI_COMMIT_BRANCH`, `CI_COMMIT_TAG` and `CI_MERGE_REQUEST_SOURCE_BRANCH_NAME` are considered
* Circle CI: if `$CIRCLECI == true`, `CIRCLE_BRANCH` and `CIRCLE_TAG` are considered
* Jenkins: if `JENKINS_HOME` is set, `BRANCH_NAME` and `TAG_NAME` are considered
Expand Down
14 changes: 7 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ plugins {
id "java-gradle-plugin"
id 'com.adarshr.test-logger' version '3.2.0'

id "com.gradle.plugin-publish" version "1.0.0-rc-2"
id "com.gradle.plugin-publish" version "1.0.0"
id "maven-publish" // for local testing only

id "idea"
}

group 'me.qoomon'
version '6.3.1'
version '6.3.2'
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11

Expand All @@ -21,12 +21,12 @@ repositories {
}

dependencies {
implementation 'org.eclipse.jgit:org.eclipse.jgit:6.1.0.202203080745-r'
implementation 'org.apache.maven:maven-artifact:3.8.5'
implementation 'org.apache.commons:commons-configuration2:2.7'
implementation 'org.eclipse.jgit:org.eclipse.jgit:6.3.0.202209071007-r'
implementation 'org.apache.maven:maven-artifact:3.8.6'
implementation 'org.apache.commons:commons-configuration2:2.8.0'

testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.0-M1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.0-M1'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.0'
testImplementation 'org.assertj:assertj-core:3.23.1'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -315,12 +315,14 @@ private GitSituation getGitSituation(File executionRootDirectory) throws IOExcep
if (overrideBranch == null && overrideTag == null) {
final String gitlabEnv = System.getenv("GITLAB_CI");
if (gitlabEnv != null && gitlabEnv.equals("true")) {
LOGGER.info("gather git situation from GitLab CI environment variables: CI_COMMIT_BRANCH and CI_COMMIT_TAG");
LOGGER.info("gather git situation from GitLab CI environment variables: CI_COMMIT_BRANCH, CI_COMMIT_TAG and CI_MERGE_REQUEST_SOURCE_BRANCH_NAME");
String commitBranch = System.getenv("CI_COMMIT_BRANCH");
String commitTag = System.getenv("CI_COMMIT_TAG");
String mrSourceBranch = System.getenv("CI_MERGE_REQUEST_SOURCE_BRANCH_NAME");
LOGGER.debug(" CI_COMMIT_BRANCH: " + commitBranch);
LOGGER.debug(" CI_COMMIT_TAG: " + commitTag);
overrideBranch = commitBranch;
LOGGER.debug(" CI_MERGE_REQUEST_SOURCE_BRANCH_NAME: " + mrSourceBranch);
overrideBranch = commitBranch == null ? mrSourceBranch : commitBranch;
overrideTag = commitTag;
}
}
Expand Down

0 comments on commit cbf660b

Please sign in to comment.