Skip to content

Commit

Permalink
Remove unneeded maven version check
Browse files Browse the repository at this point in the history
  • Loading branch information
jperedadnr committed Oct 15, 2024
1 parent b3311f5 commit 5d5e760
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/main/java/com/gluonhq/NativeBaseMojo.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, 2023, Gluon
* Copyright (c) 2019, 2024, Gluon
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -36,14 +36,12 @@
import com.gluonhq.substrate.SubstrateDispatcher;
import com.gluonhq.substrate.model.Triplet;
import com.gluonhq.substrate.target.WebTargetConfiguration;
import com.gluonhq.substrate.util.Version;
import com.gluonhq.utils.MavenArtifactResolver;
import org.apache.commons.exec.ProcessDestroyer;
import org.apache.commons.exec.ShutdownHookProcessDestroyer;
import org.apache.maven.artifact.Artifact;
import org.apache.maven.execution.MavenSession;
import org.apache.maven.model.Dependency;
import org.apache.maven.model.Repository;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.BuildPluginManager;
import org.apache.maven.plugin.MojoExecutionException;
Expand Down Expand Up @@ -77,8 +75,6 @@ public abstract class NativeBaseMojo extends AbstractMojo {

private static final List<String> ALLOWED_DEPENDENCY_TYPES = Collections.singletonList("jar");

private static final Version MAX_SUPPORTED_MAVEN_VERSION = new Version(3, 9, 9);

Path outputDir;

@Parameter(defaultValue = "${project}", readonly = true)
Expand Down Expand Up @@ -177,12 +173,6 @@ public abstract class NativeBaseMojo extends AbstractMojo {
private ProcessDestroyer processDestroyer;

public SubstrateDispatcher createSubstrateDispatcher() throws IOException, MojoExecutionException {
String mavenVersion = runtimeInformation.getMavenVersion();
Version version = new Version(mavenVersion);
if (version.compareTo(MAX_SUPPORTED_MAVEN_VERSION) > 0) {
throw new MojoExecutionException("Maven version " + mavenVersion + " is not currently supported by the GluonFX Maven Plugin.\n" +
"Please downgrade your Maven version to " + MAX_SUPPORTED_MAVEN_VERSION + " and then try again.\n");
}
if (getGraalvmHome().isEmpty()) {
throw new MojoExecutionException("GraalVM installation directory not found." +
" Either set GRAALVM_HOME as an environment variable or" +
Expand Down

0 comments on commit 5d5e760

Please sign in to comment.