Skip to content

Commit

Permalink
[MPLUGIN-485] Upgrade Parent to 40
Browse files Browse the repository at this point in the history
  • Loading branch information
slawekjaranowski committed Oct 21, 2023
1 parent 52cf6b5 commit 1934c85
Show file tree
Hide file tree
Showing 18 changed files with 56 additions and 17 deletions.
7 changes: 7 additions & 0 deletions maven-plugin-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,13 @@
<pomExclude>plugin-info-jdk/pom.xml</pomExclude>
<!-- relies on just a given plugin.xml for generating a report, this is no longer supported -->
</pomExcludes>
<extraArtifacts>
<!-- used in ITs -->
<extraArtifact>org.apache.maven.plugin-tools:maven-plugin-tools-annotations:${project.version}:jar:test-sources</extraArtifact>
<extraArtifact>org.apache.maven.plugin-tools:maven-plugin-tools-annotations:${project.version}:test-jar</extraArtifact>
<extraArtifact>org.apache.maven.plugin-tools:maven-script-ant:${project.version}</extraArtifact>
<extraArtifact>org.apache.maven.plugin-tools:maven-script-beanshell:${project.version}</extraArtifact>
</extraArtifacts>
</configuration>
<executions>
<execution>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
* under the License.
*/

import groovy.xml.XmlParser

File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" );
assert descriptorFile.isFile()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
* under the License.
*/

import groovy.xml.XmlParser

File touchFile = new File( basedir, "module-mojo/target/touch.txt" )
assert touchFile.isFile()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
* under the License.
*/

import groovy.xml.XmlParser

File touchFile = new File( basedir, "target/touch.txt" )
assert touchFile.isFile()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
* under the License.
*/

import groovy.xml.XmlParser

File touchFile = new File( basedir, "target/touch.txt" )
assert touchFile.isFile()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
* under the License.
*/

import groovy.xml.XmlParser

File touchFile = new File( basedir, "target/touch.txt" )
assert touchFile.isFile()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
* under the License.
*/

import groovy.xml.XmlParser

File touchFile = new File( basedir, "target/touch.txt" )
assert touchFile.isFile()

Expand Down
2 changes: 2 additions & 0 deletions maven-plugin-plugin/src/it/java-basic/verify.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
* under the License.
*/

import groovy.xml.XmlParser

File touchFile = new File( basedir, "target/touch.txt" )
assert touchFile.isFile()

Expand Down
2 changes: 2 additions & 0 deletions maven-plugin-plugin/src/it/mplugin-223/verify.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* limitations under the License.
*/

import groovy.xml.XmlParser

File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" );
assert descriptorFile.isFile()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* limitations under the License.
*/

import groovy.xml.XmlParser

File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" );
assert descriptorFile.isFile()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* limitations under the License.
*/

import groovy.xml.XmlParser

File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" );
assert descriptorFile.isFile()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* limitations under the License.
*/

import groovy.xml.XmlParser

File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" );
assert descriptorFile.isFile()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
* under the License.
*/

import groovy.xml.XmlParser

File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" );
assert descriptorFile.isFile()

Expand Down
2 changes: 2 additions & 0 deletions maven-plugin-plugin/src/it/packaging-jar/verify.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
* under the License.
*/

import groovy.xml.XmlParser

File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" );
assert descriptorFile.isFile()

Expand Down
2 changes: 2 additions & 0 deletions maven-plugin-plugin/src/it/source-encoding/verify.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
* under the License.
*/

import groovy.xml.XmlParser

def latin1File = new File(basedir, 'latin-1/target/classes/META-INF/maven/plugin.xml')
assert latin1File.exists()
def latin1Chars = new XmlParser().parse(latin1File).mojos.mojo.description.text()
Expand Down
2 changes: 2 additions & 0 deletions maven-plugin-plugin/src/it/v4api/verify.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
* under the License.
*/

import groovy.xml.XmlParser

File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" );
assert descriptorFile.isFile()

Expand Down
4 changes: 4 additions & 0 deletions maven-plugin-report-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,10 @@
<maven.compiler.source>${maven.compiler.source}</maven.compiler.source>
<maven.compiler.target>${maven.compiler.target}</maven.compiler.target>
</properties>
<extraArtifacts>
<!-- used in ITs -->
<extraArtifact>org.apache.maven.plugins:maven-plugin-plugin:${project.version}</extraArtifact>
</extraArtifacts>
</configuration>
<executions>
<execution>
Expand Down
32 changes: 15 additions & 17 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.maven</groupId>
<artifactId>maven-parent</artifactId>
<version>39</version>
<version>40</version>
<relativePath />
</parent>

Expand Down Expand Up @@ -357,24 +357,22 @@
<trimStackTrace>false</trimStackTrace>
</configuration>
</plugin>
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<configuration>
<java>
<includes>
<include>src/**/*.java</include>
</includes>
<excludes>
<exclude>**/it/source-encoding/</exclude>
</excludes>
</java>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<configuration>
<java>
<includes>
<include>src/**/*.java</include>
</includes>
<excludes>
<exclude>**/it/source-encoding/</exclude>
</excludes>
</java>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
Expand Down

0 comments on commit 1934c85

Please sign in to comment.