Skip to content

Commit

Permalink
Fix for gwt-plugins#403
Browse files Browse the repository at this point in the history
  • Loading branch information
foal authored Jun 26, 2022
1 parent e5cb514 commit 1a80ddc
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
public class GWTMavenRuntime extends ProjectBoundSdk {

public static final String MAVEN_GWT_GROUP_ID = "com.google.gwt";
public static final String MAVEN_GWT_NEW_GROUP_ID = "org.gwtproject";
public static final String MAVEN_GWT_DEV_JAR_ARTIFACT_ID = "gwt-dev";
public static final String MAVEN_GWT_USER_ARTIFACT_ID = "gwt-user";
public static final String MAVEN_GWT_SERVLET_ARTIFACT_ID = "gwt-servlet";
Expand Down Expand Up @@ -154,7 +155,11 @@ public File getDevJar() throws SdkException, JavaModelException {
IPath path = MavenUtils.getArtifactPathForPeerMavenArtifact(classpathEntry.getPath(), MAVEN_GWT_GROUP_ID,
MAVEN_GWT_DEV_JAR_ARTIFACT_ID);
if (path == null) {
throw new SdkException("Unable to locate gwt-dev.jar");
path = MavenUtils.getArtifactPathForPeerMavenArtifact(classpathEntry.getPath(), MAVEN_GWT_NEW_GROUP_ID,
MAVEN_GWT_DEV_JAR_ARTIFACT_ID);
if (path == null) {
throw new SdkException("Unable to locate gwt-dev.jar");
}
}

if (!path.toFile().exists()) {
Expand Down

0 comments on commit 1a80ddc

Please sign in to comment.