Skip to content

Commit 1934c85

Browse files
[MPLUGIN-485] Upgrade Parent to 40
1 parent 52cf6b5 commit 1934c85

File tree

18 files changed

+56
-17
lines changed

18 files changed

+56
-17
lines changed

maven-plugin-plugin/pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,13 @@
284284
<pomExclude>plugin-info-jdk/pom.xml</pomExclude>
285285
<!-- relies on just a given plugin.xml for generating a report, this is no longer supported -->
286286
</pomExcludes>
287+
<extraArtifacts>
288+
<!-- used in ITs -->
289+
<extraArtifact>org.apache.maven.plugin-tools:maven-plugin-tools-annotations:${project.version}:jar:test-sources</extraArtifact>
290+
<extraArtifact>org.apache.maven.plugin-tools:maven-plugin-tools-annotations:${project.version}:test-jar</extraArtifact>
291+
<extraArtifact>org.apache.maven.plugin-tools:maven-script-ant:${project.version}</extraArtifact>
292+
<extraArtifact>org.apache.maven.plugin-tools:maven-script-beanshell:${project.version}</extraArtifact>
293+
</extraArtifacts>
287294
</configuration>
288295
<executions>
289296
<execution>

maven-plugin-plugin/src/it/annotation-with-inheritance-from-deps/verify.groovy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* under the License.
1818
*/
1919

20+
import groovy.xml.XmlParser
21+
2022
File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" );
2123
assert descriptorFile.isFile()
2224

maven-plugin-plugin/src/it/annotation-with-inheritance-reactor/verify.groovy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* under the License.
1818
*/
1919

20+
import groovy.xml.XmlParser
21+
2022
File touchFile = new File( basedir, "module-mojo/target/touch.txt" )
2123
assert touchFile.isFile()
2224

maven-plugin-plugin/src/it/annotation-with-inheritance/verify.groovy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* under the License.
1818
*/
1919

20+
import groovy.xml.XmlParser
21+
2022
File touchFile = new File( basedir, "target/touch.txt" )
2123
assert touchFile.isFile()
2224

maven-plugin-plugin/src/it/java-basic-annotations-jdk8/verify.groovy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* under the License.
1818
*/
1919

20+
import groovy.xml.XmlParser
21+
2022
File touchFile = new File( basedir, "target/touch.txt" )
2123
assert touchFile.isFile()
2224

maven-plugin-plugin/src/it/java-basic-annotations-jdkcurrent/verify.groovy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* under the License.
1818
*/
1919

20+
import groovy.xml.XmlParser
21+
2022
File touchFile = new File( basedir, "target/touch.txt" )
2123
assert touchFile.isFile()
2224

maven-plugin-plugin/src/it/java-basic-annotations/verify.groovy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* under the License.
1818
*/
1919

20+
import groovy.xml.XmlParser
21+
2022
File touchFile = new File( basedir, "target/touch.txt" )
2123
assert touchFile.isFile()
2224

maven-plugin-plugin/src/it/java-basic/verify.groovy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* under the License.
1818
*/
1919

20+
import groovy.xml.XmlParser
21+
2022
File touchFile = new File( basedir, "target/touch.txt" )
2123
assert touchFile.isFile()
2224

maven-plugin-plugin/src/it/mplugin-223/verify.groovy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
* limitations under the License.
1616
*/
1717

18+
import groovy.xml.XmlParser
19+
1820
File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" );
1921
assert descriptorFile.isFile()
2022

maven-plugin-plugin/src/it/mplugin-305_defaultMojoDependencies/verify.groovy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
* limitations under the License.
1616
*/
1717

18+
import groovy.xml.XmlParser
19+
1820
File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" );
1921
assert descriptorFile.isFile()
2022

maven-plugin-plugin/src/it/mplugin-305_emptyMojoDependencies/verify.groovy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
* limitations under the License.
1616
*/
1717

18+
import groovy.xml.XmlParser
19+
1820
File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" );
1921
assert descriptorFile.isFile()
2022

maven-plugin-plugin/src/it/mplugin-305_singleMojoDependencies/verify.groovy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
* limitations under the License.
1616
*/
1717

18+
import groovy.xml.XmlParser
19+
1820
File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" );
1921
assert descriptorFile.isFile()
2022

maven-plugin-plugin/src/it/mplugin-382-exclude-provided-dependency/verify.groovy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* under the License.
1818
*/
1919

20+
import groovy.xml.XmlParser
21+
2022
File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" );
2123
assert descriptorFile.isFile()
2224

maven-plugin-plugin/src/it/packaging-jar/verify.groovy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* under the License.
1818
*/
1919

20+
import groovy.xml.XmlParser
21+
2022
File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" );
2123
assert descriptorFile.isFile()
2224

maven-plugin-plugin/src/it/source-encoding/verify.groovy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* under the License.
1818
*/
1919

20+
import groovy.xml.XmlParser
21+
2022
def latin1File = new File(basedir, 'latin-1/target/classes/META-INF/maven/plugin.xml')
2123
assert latin1File.exists()
2224
def latin1Chars = new XmlParser().parse(latin1File).mojos.mojo.description.text()

maven-plugin-plugin/src/it/v4api/verify.groovy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* under the License.
1818
*/
1919

20+
import groovy.xml.XmlParser
21+
2022
File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" );
2123
assert descriptorFile.isFile()
2224

maven-plugin-report-plugin/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,10 @@
257257
<maven.compiler.source>${maven.compiler.source}</maven.compiler.source>
258258
<maven.compiler.target>${maven.compiler.target}</maven.compiler.target>
259259
</properties>
260+
<extraArtifacts>
261+
<!-- used in ITs -->
262+
<extraArtifact>org.apache.maven.plugins:maven-plugin-plugin:${project.version}</extraArtifact>
263+
</extraArtifacts>
260264
</configuration>
261265
<executions>
262266
<execution>

pom.xml

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<parent>
2424
<groupId>org.apache.maven</groupId>
2525
<artifactId>maven-parent</artifactId>
26-
<version>39</version>
26+
<version>40</version>
2727
<relativePath />
2828
</parent>
2929

@@ -357,24 +357,22 @@
357357
<trimStackTrace>false</trimStackTrace>
358358
</configuration>
359359
</plugin>
360+
<plugin>
361+
<groupId>com.diffplug.spotless</groupId>
362+
<artifactId>spotless-maven-plugin</artifactId>
363+
<configuration>
364+
<java>
365+
<includes>
366+
<include>src/**/*.java</include>
367+
</includes>
368+
<excludes>
369+
<exclude>**/it/source-encoding/</exclude>
370+
</excludes>
371+
</java>
372+
</configuration>
373+
</plugin>
360374
</plugins>
361375
</pluginManagement>
362-
<plugins>
363-
<plugin>
364-
<groupId>com.diffplug.spotless</groupId>
365-
<artifactId>spotless-maven-plugin</artifactId>
366-
<configuration>
367-
<java>
368-
<includes>
369-
<include>src/**/*.java</include>
370-
</includes>
371-
<excludes>
372-
<exclude>**/it/source-encoding/</exclude>
373-
</excludes>
374-
</java>
375-
</configuration>
376-
</plugin>
377-
</plugins>
378376
</build>
379377

380378
<profiles>

0 commit comments

Comments
 (0)