Skip to content

Commit

Permalink
#580 raise minimum maven compatibility requirement to 363 (#581)
Browse files Browse the repository at this point in the history
  • Loading branch information
DirkMahler authored Aug 8, 2024
1 parent ce23c0f commit 52e49fe
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 29 deletions.
9 changes: 2 additions & 7 deletions cli/application/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@

<name>jQAssistant Commandline Application</name>

<properties>
<maven-resolver-provider.version>3.5.0</maven-resolver-provider.version>
<maven-settings-builder.version>3.5.0</maven-settings-builder.version>
</properties>

<build>
<plugins>
<plugin>
Expand Down Expand Up @@ -49,7 +44,7 @@
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-settings-builder</artifactId>
<version>${maven-settings-builder.version}</version>
<version>${maven.version}</version>
</dependency>
<!-- Maven Resolver -->
<dependency>
Expand All @@ -71,7 +66,7 @@
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-resolver-provider</artifactId>
<version>${maven-resolver-provider.version}</version>
<version>${maven.version}</version>
<exclusions>
<exclusion>
<groupId>org.apache.maven.resolver</groupId>
Expand Down
14 changes: 10 additions & 4 deletions maven/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
</description>

<properties>
<org.apache.maven.version>3.5.0</org.apache.maven.version>
<org.apache.maven_project_version>2.2.1</org.apache.maven_project_version>
<org.apache.maven.reporting_version>3.2.0</org.apache.maven.reporting_version>

Expand Down Expand Up @@ -185,7 +184,8 @@
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>${org.apache.maven.version}</version>
<version>${maven.version}</version>
<scope>provided</scope>
<exclusions>
<exclusion>
<!-- Contains outdated Google Guice/Guava APIs -->
Expand All @@ -194,14 +194,20 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-model</artifactId>
<version>${maven.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-core</artifactId>
<version>${org.apache.maven.version}</version>
<version>${maven.version}</version>
<scope>provided</scope>
<exclusions>
<exclusion>
Expand All @@ -213,7 +219,7 @@
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-artifact</artifactId>
<version>${org.apache.maven.version}</version>
<version>${maven.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ private static String createExecutionKey(MojoExecution mojoExecution) {

@Override
public final void execute() throws MojoExecutionException, MojoFailureException {
if (!runtimeInformation.isMavenVersion("[3.5,)")) {
throw new MojoExecutionException("jQAssistant requires Maven 3.5.x or above.");
if (!runtimeInformation.isMavenVersion("[3.6.3,)")) {
throw new MojoExecutionException("jQAssistant requires Maven 3.6.3 or above.");
}
// Synchronize on this class as multiple instances of the plugin may exist in parallel builds
synchronized (AbstractMojo.class) {
Expand Down
24 changes: 11 additions & 13 deletions plugin/maven/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
</description>

<properties>
<org.apache.maven.version>3.5.0</org.apache.maven.version>
<org.apache.maven_dependency-tree.version>3.1.0</org.apache.maven_dependency-tree.version>
<org.apache.maven_dependency-tree.version>3.3.0</org.apache.maven_dependency-tree.version>
</properties>

<build>
Expand Down Expand Up @@ -85,17 +84,6 @@
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-core</artifactId>
<version>${org.apache.maven.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>${org.apache.maven.version}</version>
</dependency>
<dependency>
<groupId>org.apache.maven.shared</groupId>
<artifactId>maven-dependency-tree</artifactId>
Expand All @@ -107,6 +95,16 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-core</artifactId>
<version>${maven.version}</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>${maven.version}</version>
</dependency>
<dependency>
<groupId>org.apache.maven.shared</groupId>
<artifactId>maven-common-artifact-filters</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ private void scanAndVerify(Map<String, Object> properties, boolean expectedDepen
.getLocalRepository();
doReturn(localRepository).when(mavenSession)
.getLocalRepository();
doReturn(ProjectBuildingRequest.RepositoryMerging.POM_DOMINANT).when(projectBuildingRequest)
.getRepositoryMerging();

doReturn(mavenSession).when(scannerContext)
.peek(MavenSession.class);
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</scm>

<prerequisites>
<maven>3.6</maven>
<maven>${maven.version}</maven>
</prerequisites>

<distributionManagement>
Expand Down Expand Up @@ -96,6 +96,7 @@
<junit-pioneer.version>2.2.0</junit-pioneer.version>
<lombok.version>1.18.34</lombok.version>
<mapstruct.version>1.5.5.Final</mapstruct.version>
<maven.version>3.6.3</maven.version>
<mockito.version>5.12.0</mockito.version>
<neo4j_4x.version>4.4.36</neo4j_4x.version>
<neo4j_4x_apoc.version>4.4.0.29</neo4j_4x_apoc.version>
Expand Down Expand Up @@ -145,7 +146,6 @@
<nexus-staging-maven-plugin.version>1.7.0</nexus-staging-maven-plugin.version>
<maven.sonar.version>4.0.0.4121</maven.sonar.version>
<!-- Maven config -->
<maven.min.version>3.5.0</maven.min.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<!-- integration tests -->
Expand Down Expand Up @@ -511,7 +511,7 @@
<configuration>
<rules>
<requireMavenVersion>
<version>[${maven.min.version},)</version>
<version>[${maven.version},)</version>
</requireMavenVersion>
<requireSameVersions>
<plugins>
Expand Down

0 comments on commit 52e49fe

Please sign in to comment.