Skip to content

Commit c86b708

Browse files
authored
Merge pull request #111 from egineering-llc/release/2.2.0
Release/2.2.0
2 parents c18b239 + b2d24ba commit c86b708

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ All of the solutions to these issues are implemented independently in different
110110
<stageDeploymentRepository>localnexus-stage</stageDeploymentRepository>
111111
<snapshotDeploymentRepository>localnexus-snapshots</snapshotDeploymentRepository>
112112
<!-- Allow branches starting with feature/poc to be published as automagically versioned branch-name-SNAPSHOT artifacts -->
113-
<otherDeploymentBranchPattern>(origin/)feature/poc/.*</otherDeploymentBranchPattern>
113+
<otherDeployBranchPattern>(origin/)feature/poc/.*</otherDeployBranchPattern>
114114
</configuration>
115115
<executions>
116116
<execution>
@@ -203,7 +203,7 @@ plugins in the build process (deploy, site-deploy, etc.) will use the repositori
203203
| releaseDeploymentRepository | n/a | The repository to use for releases. (Builds with a GIT_BRANCH matching `masterBranchPattern` or `supportBranchPattern`) |
204204
| stageDeploymentRepository | n/a | The repository to use for staging. (Builds with a GIT_BRANCH matching `releaseBranchPattern` or `hotfixBranchPattern`) |
205205
| snapshotDeploymentRepository | n/a | The repository to use for snapshots. (Builds matching `developmentBranchPattern`) |
206-
| otherDeploymentBranchPattern | n/a | Regex. When matched, the branch name is normalized and any artifacts produced by the build will include the normalized branch name and -SNAPSHOT. Deployment will target the snapshot repository |
206+
| otherDeployBranchPattern | n/a | Regex. When matched, the branch name is normalized and any artifacts produced by the build will include the normalized branch name and -SNAPSHOT. Deployment will target the snapshot repository |
207207

208208
**The repository properties should follow the following format**, `id::layout::url::uniqueVersion`.
209209

@@ -255,7 +255,7 @@ Can be replaced with the following plugin configuration, which also introduces t
255255
### Deploying non-release (OTHER) type branches as -SNAPSHOT releases.
256256

257257
In addition to setting up repository targets for release branches, the `retarget-depoy` branch can deploy other branches
258-
matching the `otherDeploymentBranchPattern` as -SNAPSHOT artifacts which include the branch name as build metadata.
258+
matching the `otherDeployBranchPattern` as -SNAPSHOT artifacts which include the branch name as build metadata.
259259
By default this is loosely based on the [semVer](https://semver.org) semantic version scheme, in that the plugin will
260260
reversion any artifacts to be produced with `+feature-branch-name-normalized-SNAPSHOT` where any characters not in
261261
`[0-9A-Za-z-.]` will be replaced with `-`. In cases where the `+` delimiter is problematic, you can override that default

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<groupId>com.e-gineering</groupId>
1010
<artifactId>gitflow-helper-maven-plugin</artifactId>
11-
<version>2.1.1</version>
11+
<version>2.2.0</version>
1212

1313
<packaging>maven-plugin</packaging>
1414

src/main/java/com/e_gineering/maven/gitflowhelper/MasterPromoteExtension.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public void afterProjectsRead(MavenSession session) throws MavenExecutionExcepti
8080
for (MavenProject project : session.getProjects()) {
8181
List<Plugin> dropPlugins = new ArrayList<>();
8282

83-
for (Plugin plugin : project.getBuildPlugins()) {
83+
for (Plugin plugin : project.getModel().getBuild().getPlugins()) {
8484
// Don't drop our plugin. Read it's config
8585
if (plugin.getKey().equals("com.e-gineering:gitflow-helper-maven-plugin")) {
8686
pluginFound = true;
@@ -189,7 +189,7 @@ public void afterProjectsRead(MavenSession session) throws MavenExecutionExcepti
189189
// invoked goals for which could be mapped back to plugins in our project build.
190190
// Goals invoked from the commandline which cannot be mapped back to our project, will get warnings, but should still execute.
191191
// If someone is on 'master' and starts executing goals, we need to allow them to do that.
192-
project.getBuildPlugins().removeAll(pluginsToDrop.get(project));
192+
project.getModel().getBuild().getPlugins().removeAll(pluginsToDrop.get(project));
193193
}
194194
}
195195
}

0 commit comments

Comments
 (0)