Skip to content

Commit 5236e02

Browse files
authored
chore(maven): bump maven plugin version to 0.0.14 (#34505)
## Current Behavior The Maven plugin is on version `0.0.13`. ## Expected Behavior The Maven plugin is bumped to version `0.0.14`, with a migration generated for Nx `22.6.0-beta.1`.
1 parent 8e1d873 commit 5236e02

File tree

12 files changed

+33
-25
lines changed

12 files changed

+33
-25
lines changed

packages/maven/batch-runner-adapters/maven3/pom.xml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0"
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
5-
http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
63
<modelVersion>4.0.0</modelVersion>
74

85
<parent>
96
<groupId>dev.nx.maven</groupId>
107
<artifactId>batch-runner-adapters</artifactId>
11-
<version>0.0.13</version>
8+
<version>0.0.14</version>
129
</parent>
1310

1411
<artifactId>maven3-adapter</artifactId>
@@ -129,4 +126,4 @@
129126
</plugin>
130127
</plugins>
131128
</build>
132-
</project>
129+
</project>

packages/maven/batch-runner-adapters/maven4/pom.xml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0"
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
5-
http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
63
<modelVersion>4.0.0</modelVersion>
74

85
<parent>
96
<groupId>dev.nx.maven</groupId>
107
<artifactId>batch-runner-adapters</artifactId>
11-
<version>0.0.13</version>
8+
<version>0.0.14</version>
129
<relativePath>../pom.xml</relativePath>
1310
</parent>
1411

@@ -160,4 +157,4 @@
160157
</plugins>
161158
</build>
162159

163-
</project>
160+
</project>

packages/maven/batch-runner-adapters/pom.xml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0"
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
5-
http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
63
<modelVersion>4.0.0</modelVersion>
74

85
<parent>
96
<groupId>dev.nx.maven</groupId>
107
<artifactId>nx-maven-parent</artifactId>
11-
<version>0.0.13</version>
8+
<version>0.0.14</version>
129
<relativePath>../pom.xml</relativePath>
1310
</parent>
1411

@@ -41,4 +38,4 @@
4138
</dependencies>
4239
</dependencyManagement>
4340

44-
</project>
41+
</project>

packages/maven/batch-runner/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>dev.nx.maven</groupId>
77
<artifactId>nx-maven-parent</artifactId>
8-
<version>0.0.13</version>
8+
<version>0.0.14</version>
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111

packages/maven/maven-plugin/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>dev.nx.maven</groupId>
77
<artifactId>nx-maven-parent</artifactId>
8-
<version>0.0.13</version>
8+
<version>0.0.14</version>
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111

packages/maven/maven-plugin/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"projectType": "library",
66
"targets": {
77
"install": {
8-
"command": "for i in {1..5}; do ./mvnw install && break || sleep 10; done"
8+
"command": "for i in {1..5}; do ./mvnw install -pl dev.nx.maven:nx-maven-plugin -am && break || sleep 10; done"
99
},
1010
"_install": {
1111
"command": "node scripts/run-native-target.js install nx-maven-plugin"

packages/maven/migrations.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@
3636
"version": "22.5.0-beta.4",
3737
"description": "Update Maven plugin version from 0.0.12 to 0.0.13 in pom.xml files",
3838
"factory": "./dist/migrations/0-0-13/update-pom-xml-version"
39+
},
40+
"update-0-0-14": {
41+
"cli": "nx",
42+
"version": "22.6.0-beta.1",
43+
"description": "Update Maven plugin version from 0.0.13 to 0.0.14 in pom.xml files",
44+
"factory": "./dist/migrations/0-0-14/update-pom-xml-version"
3945
}
4046
}
4147
}

packages/maven/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>dev.nx.maven</groupId>
77
<artifactId>nx-parent</artifactId>
8-
<version>0.0.13</version>
8+
<version>0.0.14</version>
99
<relativePath>../../pom.xml</relativePath>
1010
</parent>
1111

packages/maven/shared/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>dev.nx.maven</groupId>
77
<artifactId>nx-maven-parent</artifactId>
8-
<version>0.0.13</version>
8+
<version>0.0.14</version>
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { Tree } from '@nx/devkit';
2+
import { updateNxMavenPluginVersion } from '../../utils/pom-xml-updater';
3+
4+
/**
5+
* Migration for @nx/maven v0.0.14
6+
* Updates the Maven plugin version to 0.0.14 in pom.xml files
7+
*/
8+
export default async function update(tree: Tree) {
9+
// Update user pom.xml files
10+
updateNxMavenPluginVersion(tree, '0.0.14');
11+
}

0 commit comments

Comments
 (0)